ID: 33960
Updated by: [EMAIL PROTECTED]
Reported By: cyberline at techno4ever dot net
-Status: Open
+Status: Bogus
Bug Type: Sockets related
Operating System: Suse 9.3
PHP Version: 5.0.4
New Comment:
See bug #24867 (you propably have error_reporting set too low or you're
not displaying errors or you simply didn't paste the error here, so I'm
guessing)
Also, RTFM:
"Note: If you need to set a timeout for reading/writing data over the
socket, use stream_set_timeout(), as the timeout parameter to
fsockopen() only applies while connecting the socket."
Previous Comments:
------------------------------------------------------------------------
[2005-08-02 10:27:39] cyberline at techno4ever dot net
Description:
------------
When i set a timelimit for fsockopen() the script won't stop after the
limit reaches.
Reproduce code:
---------------
if($fp = fsockopen($host, $port, &$errno, &$errnum, 2)) {
...
}
Expected result:
----------------
When the checked host is offline, the script reported that afetr 2
seconds.
Actual result:
--------------
The Script is stopping after 60 seconds.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33960&edit=1