php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18242 fsockopen() return FALSE
Submitted: 2002-07-09 09:55 UTC Modified: 2002-07-09 17:14 UTC
From: guichi at club-internet dot fr Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.2.1 OS: WIN NT4
Private report: No CVE-ID: None
 [2002-07-09 09:55 UTC] guichi at club-internet dot fr
Hello
I'm using fsockopen on an url.
$File is FALSE but errno is 0 and errstr empty
Do I forget anything in my php configuration file?
Best regards
Niorj

$File = fsockopen("toto",8080,&$errno , &$errstr ,$timeout=50);
  $Buffer = "";
  if($File===FALSE)
  {
    $Buffer="$errstr ($errno)";
    echo $Buffer;
    print_r($File);
    exit();
  }
else 
....

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-09 17:14 UTC] jason@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.

Error behavior and timeout functionality where fixed/implemented on win32 recently

-Jason
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Feb 29 15:01:32 2024 UTC