PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_FTP » Bug #1938

wrong param-order for get- ond put-method

Details

Request #1938wrong param-order for get- ond put-method
Submitted2004-07-21 13:55 UTC
Fromjoerg dot schoppet at web dot de
StatusWont fix
PackageNet_FTP
PHP Version4.3.7
OSWindows 2K
Roadmaps(Not assigned)

Comments

[2004-07-21 13:55 UTC] joerg dot schoppet at web dot de

Description:
------------
Hi,
why do you changed the order for the parameters in your get- and put-method?

Your method:
NET_FTP::get($remote, $local);
Standard php-methods:
ftp_get($local, $remote);
ftp_nb_get($local, $remote);

Your method:
NET_FTP::put($local, $remote);
Standard php-methods:
ftp_put($remote, $local)
ftp_nb_put($remote, local);

This doesn't make sense IMHO, only to produce more errors.

Kind Regards

Joerg Schoppet

Expected result:
----------------
NET_FTP::get($local, $remote);
NET_FTP::put($remote, $local);