ID:               40041
 Updated by:       [EMAIL PROTECTED]
 Reported By:      nhnui dot mail at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Sockets related
 Operating System: windows 2003
 PHP Version:      5.2.0
 New Comment:

If fsockopen() timesout while trying to open a socket it won't 
return you a socket resource to close.


Previous Comments:
------------------------------------------------------------------------

[2007-01-06 08:31:30] nhnui dot mail at gmail dot com

Description:
------------
when fsockopen() can't connect within timeout it doesn't close the
opened socked

I discovered this using Process Explorer

Reproduce code:
---------------
$fp=fsockopen($some_unreachable_ip,$some_port,$errno,$errstr,$some_timeout);
if ($fp)
  fclose($fp);



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40041&edit=1

Reply via email to