#33960 [Opn->Bgs]: fsockopen() timeout parameter has no function

From: Date: Tue, 02 Aug 2005 16:44:17 +0000
Subject: #33960 [Opn->Bgs]: fsockopen() timeout parameter has no function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-82833@lists.php.net to get a copy of this message
ID: 33960 Updated by: sniper@php.net 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

« previous php.bugs (#82833) next »