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::fileSize
is 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::raw
is now throw exception in failure.FtpWrapper::getErrorMessage
returns empty string instead of null if no error message is available.FtpClient::getFeatures
throws exception in failure.- Fixed
FtpClient::createDir
for multiple directory creation. FtpClient::getFileContent
now 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::getFileContent
to get the correct file content for binary files (#20). - Added a new optional parameter
$mode
toFtpClient::getFileContent
to specify the FTP transfer mode that will be used to get the files content. - Fixed
FtpClient::listDirDetails
for FTP servers that do not send the DOTS files pointers in directories listing operations (#21).
v1.4.1
v1.4.0
FtpClient::fileSize
fixed for servers that not supportSIZE
feature.FtpClient::listDir
fixed compatibility issue with some FTP servers.Connection::isConnected
fixed bug : if the connection is not established yet the method was returned
a NULL value instead of false.FtpCommand::raw
improved and added theend-message
to the returned array.FtpClient::isDir
performance optimized.FtpClient::listDirDetails
improved (No Breaking Change).FtpClient::getFeatures
is now returns false in failure.FtpClient::isFeatureSupported
can now throw aFtpClientException
exception.ConnectionInterface::isSecure
is deprecated see #15.- The integration tests refactored and optimized.
v1.3.5
Fixed
FtpClient::isDir
andFtpClient::isFile
fixed servers compatibility, this two methods no longer depends on the untrustedSIZE
feature to work.
Added
FtpClient::copy
method added.
Behavior changed
FtpClient::getFileContent
returns false if the passed file is a directory.
v1.3.3
Added
FtpClient::copyToLocal
method added.FtpClient::find
method added.
Renamed
FtpClient::setCurrentDir
renamed toFtpClient::changeDir
.FtpClient::createDirectory
renamed toFtpClient::createDir
.FtpClient::removeDirectory
renamed toFtpClient::removeDir
.FtpClient::getDefaultTransferType
renamed toFtpClient::getTransferType
.FtpClient::keepConnectionAlive
renamed toFtpClient::keepAlive
.FtpClient::listDirecory
renamed toFtpClient::listDir
.FtpClient::listDirecoryDetails
renamed toFtpClient::listDirDetails
.FtpWrapper::getFtpErrorMessage
renamed toFtpWrapper::getErrorMessage
.
Others
- Upgraded PHPUnits version to ^5.