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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 15:01:32 2024 UTC