php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #34853 ftp_login failed, if server reply 200
Submitted: 2005-10-13 12:53 UTC Modified: 2006-08-27 16:55 UTC
From: markokarjalainen at kolumbus dot fi Assigned: bjori (profile)
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.4.0 OS: Linux
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: markokarjalainen at kolumbus dot fi
New email:
PHP Version: OS:

 

 [2005-10-13 12:53 UTC] 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)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-27 16:55 UTC] bjori@php.net
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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 09:01:28 2025 UTC