PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

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);