#34853 [Opn->Bgs]: ftp_login failed, if server reply 200
| From: | bjori@php.net | Date: | Sun, 27 Aug 2006 16:55:15 +0000 |
| Subject: | #34853 [Opn->Bgs]: ftp_login failed, if server reply 200 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-101388@lists.php.net to get a copy of this message | ||
ID: 34853
Updated by: bjori@php.net
Reported By: markokarjalainen at kolumbus dot fi
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 4.4.0
-Assigned To:
+Assigned To: bjori
New Comment:
No.
Valid reply codes for USER are: 230, 530, 500, 501, 421, 331 & 332
For PASS: 230, 202, 530, 500, 501, 503, 421 & 332
Any server returning other codes is simply broken.
Previous Comments:
------------------------------------------------------------------------
[2005-10-13 12:53:42] markokarjalainen at kolumbus dot fi
Description:
------------
ftp_login should reply true, if server gives 200 reply after
sending username command
Reproduce code:
---------------
In folder ext\ftp\ftp.c
Function ftp_login
Change row 310
From:
if (ftp->resp == 230)
To:
if (ftp->resp == 230 || ftp->resp == 200)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34853&edit=1