Releases: lazzard/php-ftp-client
Releases · lazzard/php-ftp-client
v1.7.0
v1.6.1
v1.6.0
v1.5.3
- Added new method
FtpClient::appendFile. - Added getters and setters for various classes (see commit).
- Removed the deprecated
ConnectionInterface::isSecure. - Removed the deprecated
ConnectionInterface::isPassive. FtpClient::fileSizeis now throw exception if the giving file is a directory type or an error occurs.
v1.5.0
- Upgraded the code base to PHP v7.2.
- Upgraded PHPUnit to ^8.0.
FtpCommand::rawis now throw exception in failure.FtpWrapper::getErrorMessagereturns empty string instead of null if no error message is available.FtpClient::getFeaturesthrows exception in failure.- Fixed
FtpClient::createDirfor multiple directory creation. FtpClient::getFileContentnow throws exception if the passed file is a directory type instead of returning false value.- Fixed PHPDoc for some methods.
v1.4.2
- Fixed
FtpClient::getFileContentto get the correct file content for binary files (#20). - Added a new optional parameter
$modetoFtpClient::getFileContentto specify the FTP transfer mode that will be used to get the files content. - Fixed
FtpClient::listDirDetailsfor FTP servers that do not send the DOTS files pointers in directories listing operations (#21).
v1.4.1
v1.4.0
FtpClient::fileSizefixed for servers that not supportSIZEfeature.FtpClient::listDirfixed compatibility issue with some FTP servers.Connection::isConnectedfixed bug : if the connection is not established yet the method was returned
a NULL value instead of false.FtpCommand::rawimproved and added theend-messageto the returned array.FtpClient::isDirperformance optimized.FtpClient::listDirDetailsimproved (No Breaking Change).FtpClient::getFeaturesis now returns false in failure.FtpClient::isFeatureSupportedcan now throw aFtpClientExceptionexception.ConnectionInterface::isSecureis deprecated see #15.- The integration tests refactored and optimized.
v1.3.5
Fixed
FtpClient::isDirandFtpClient::isFilefixed servers compatibility, this two methods no longer depends on the untrustedSIZEfeature to work.
Added
FtpClient::copymethod added.
Behavior changed
FtpClient::getFileContentreturns false if the passed file is a directory.
v1.3.3
Added
FtpClient::copyToLocalmethod added.FtpClient::findmethod added.
Renamed
FtpClient::setCurrentDirrenamed toFtpClient::changeDir.FtpClient::createDirectoryrenamed toFtpClient::createDir.FtpClient::removeDirectoryrenamed toFtpClient::removeDir.FtpClient::getDefaultTransferTyperenamed toFtpClient::getTransferType.FtpClient::keepConnectionAliverenamed toFtpClient::keepAlive.FtpClient::listDirecoryrenamed toFtpClient::listDir.FtpClient::listDirecoryDetailsrenamed toFtpClient::listDirDetails.FtpWrapper::getFtpErrorMessagerenamed toFtpWrapper::getErrorMessage.
Others
- Upgraded PHPUnits version to ^5.