#40041 [Opn->Bgs]: fsockopen doesn't close socket at timeout
| From: | iliaa@php.net | Date: | Sat, 06 Jan 2007 16:45:17 +0000 |
| Subject: | #40041 [Opn->Bgs]: fsockopen doesn't close socket at timeout | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-107243@lists.php.net to get a copy of this message | ||
ID: 40041
Updated by: iliaa@php.net
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