#34122 [Fbk->Opn]: Wrong failed FTP login
| From: | zxc at zmail dot ru | Date: | Sat, 13 Aug 2005 17:56:24 +0000 |
| Subject: | #34122 [Fbk->Opn]: Wrong failed FTP login | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83534@lists.php.net to get a copy of this message | ||
ID: 34122
User updated by: zxc at zmail dot ru
Reported By: zxc at zmail dot ru
-Status: Feedback
+Status: Open
Bug Type: FTP related
Operating System: Windows 2000 Pro SP4
PHP Version: 4.4.0
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2005-08-13 14:52:14] tony2001@php.net
Maybe. But others don't, so please speak English here. You have to
investigate it yourself and figure out why this particular FTP-server
differs from the others.
Please reopen the report only when you have this info.
------------------------------------------------------------------------
[2005-08-13 14:43:24] zxc at zmail dot ru
Tony, ok. May be you speak russian ?
------------------------------------------------------------------------
[2005-08-13 14:35:57] tony2001@php.net
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.
------------------------------------------------------------------------
[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