From:             zxc at zmail dot ru
Operating system: Windows 2000 Pro SP4
PHP version:      4.4.0
PHP Bug Type:     *General Issues
Bug description:  Wrong failed FTP login

Description:
------------
I try to connect to remote FTP SERVER.
Remote FTP server has "anonymous account" = login must by "anonymous" and
any password, but after "ftp_login()" I have:

Warning: ftp_login(): Syntax error: Invalid number of parameters. in
d:\vhosts\webftpmonitor.scornet.lan\test.php on line 3
bool(false)

But if I use this code works fine (deffirent password, but not NULL or not
empty string -> ""):

<?
$ftp=ftp_connect("remoteftpserver.domain");
var_dump(ftp_login($ftp,"anonymous","tralala"));
?>

Oh yea... remote FTP SERVER is "FTP Server by Pablo Software Solutions
Version, latest version of lite and pro version"
(http://www.pablosoftwaresolutions.com/)

Reproduce code:
---------------
<?
$ftp=ftp_connect("remoteftpserver.domain");
var_dump(ftp_login($ftp,"anonymous",NULL));
?>

Expected result:
----------------
bool(true)

Actual result:
--------------
bool(false)

-- 
Edit bug report at http://bugs.php.net/?id=34122&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34122&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34122&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34122&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34122&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34122&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34122&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34122&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34122&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34122&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34122&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34122&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34122&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34122&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34122&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34122&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34122&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34122&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34122&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34122&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34122&r=mysqlcfg

Reply via email to