ID: 34122 Updated by: [EMAIL PROTECTED] Reported By: zxc at zmail dot ru -Status: Open +Status: Feedback -Bug Type: *General Issues +Bug Type: FTP related Operating System: Windows 2000 Pro SP4 PHP Version: 4.4.0 New Comment:
Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2005-08-13 14:32:13] zxc at zmail dot ru 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 this bug report at http://bugs.php.net/?id=34122&edit=1