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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: zxc at zmail dot ru
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 13:01:33 2025 UTC