php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4546 ftp_connect won't connect to a site that sends a message back
Submitted: 2000-05-22 13:02 UTC Modified: 2000-08-11 05:17 UTC
From: joe at cerbernet dot co dot uk Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Release Candidate 2 OS: Redhat 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: joe at cerbernet dot co dot uk
New email:
PHP Version: OS:

 

 [2000-05-22 13:02 UTC] joe at cerbernet dot co dot uk
The ftp_connect() function is great, except for if I use it to connect to an FTP Server which outputs a logon message.
eg. on Linux, if the file .message is present in the FTP home dir, the FTP server outputs the file, and ftp_connect() produces a visible warning, containing part of the server's logon message.

This had me really stumped, until I deleted .message. As far as I can see, once ftp_connect reads a 230 from the server, it should keep on reading + ignoring until the socket's empty..

Thanks for the help + great language!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-10 08:59 UTC] sniper@php.net
Does this problem persist with more recent versions of PHP4? 
And please provide smallest reproducing script with public ftp-site.

--Jani 
 [2000-08-11 05:17 UTC] sniper@php.net
Fixed in CVS. Thanks.

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 10 17:00:02 2026 UTC