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

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-18 11:54 UTC] sas at cvs dot php dot net
fixed in CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 08:01:35 2024 UTC