php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34122 Wrong failed FTP login
Submitted: 2005-08-13 14:32 UTC Modified: 2005-08-13 20:19 UTC
From: zxc at zmail dot ru Assigned:
Status: Not a bug Package: FTP related
PHP Version: 4.4.0 OS: Windows 2000 Pro SP4
Private report: No CVE-ID: None
 [2005-08-13 14:32 UTC] 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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-13 19:56 UTC] zxc at zmail dot ru
Tony, I have this info. It's bug in remote FTP SERVER. FTP SERVER has "anonymous" account, but if do login with EMPTY password, so connect is failed.

I used connect (ftp_login()) with EMPTY (NULL) password.

Thanks for self-restraint.
 [2005-08-13 20:19 UTC] sniper@php.net
Bugs in some odd FTP server is not bug in PHP..

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC