Bug #16326 Updated: socket_set_timeout

From: Date: Wed, 10 Jul 2002 15:48:09 +0000
Subject: Bug #16326 Updated: socket_set_timeout
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13744@lists.php.net to get a copy of this message
ID: 16326 Updated by: jason@php.net Reported By: traveler@nc.rr.com -Status: Open +Status: Closed Bug Type: Sockets related Operating System: Windows 2000 PHP Version: 4.1.2 New Comment: This bug has been fixed in CVS. You can grab a snapshot of the CVS version at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-03-28 08:16:37] sander@php.net reclassified ------------------------------------------------------------------------ [2002-03-28 07:10:39] traveler@nc.rr.com When using socket_set_timeout($MyVar, 2); I get an error message returned stating: "socket_set_timeout() is not supported in this PHP build". I went to look at the help at PHP.net for socket_set_timeout and it's in versions >= 4. I'm running 4.1.2 on Windows 2000. I read that it's a replacement for set_socket_timeout(). When using set_socket_timeout() I get a fatal error. Here's the main part of the function that I'm using: function query_tribes2($ip, $port) { $tqSocket = fsockopen("udp://$ip", $port); $tqSocket2 = fsockopen("udp://$ip", $port); if ($tqSocket && $tqSocket2) { $binary = pack("CCL", 14, 2, 1234); $binary2 = pack("CCL", 18, 2, 1234); socket_set_blocking($tqSocket, 0); socket_set_blocking($tqSocket2, 0); socket_set_timeout($tqSocket, 2); socket_set_timeout($tqSocket2, 2); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16326&edit=1

« previous php.bugs (#13744) next »