From: nhnui dot mail at gmail dot com
Operating system: windows 2003
PHP version: 5.2.0
PHP Bug Type: Sockets related
Bug description: fsockopen doesn't close socket at timeout
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,$err no,$errstr,$some_timeout);
if ($fp)
fclose($fp);
--
Edit bug report at [url]http://bugs.php.net/?id=40041&edit=1[/url]
--
Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40041&r=trysnapshot44[/url]
Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40041&r=trysnapshot52[/url]
Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40041&r=trysnapshot60[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40041&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=40041&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=40041&r=needtrace[/url]
Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40041&r=needscript[/url]
Try ...
Bookmarks