php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1505 Socket code still buggy in 3.0.9!
Submitted: 1999-06-08 06:02 UTC Modified: 1999-06-18 11:54 UTC
From: landen at frg dot eur dot nl Assigned:
Status: Closed Package: Other
PHP Version: 3.0.9 OS: Linux 2.0.36
Private report: No CVE-ID: None
 [1999-06-08 06:02 UTC] landen at frg dot eur dot nl
The following piece of code worked perfectly under 3.0.7, failed under 3.0.8 and still fails under 3.0.9
The server is up continuously so you can run it yourself, the output should be:

Banner: COOKIED mailsys 
Error: ERROR 

$fp = fsockopen("mrelay.frg.eur.nl", 444, &$errno, &$errstr);
                     if(!$fp) {
                             echo "$errstr ($errno)<br>\n";
                     } else {
                             echo "Banner: ",fgets($fp,4096),"<br>\n";                             
                             fputs($fp,"cookie 123\r\n");
                             echo "Error: ",fgets($fp,4096),"<br>\n";                             
                             fputs($fp,"QUIT\r\n");
                             fclose($fp);
                     }

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-18 11:54 UTC] sas at cvs dot php dot net
fixed in CVS
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 09:00:02 2026 UTC