ID:               16326
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
-Bug Type:         Apache related
+Bug Type:         Sockets related
 Operating System: Windows 2000
 PHP Version:      4.1.2
 New Comment:

reclassified


Previous Comments:
------------------------------------------------------------------------

[2002-03-28 07:10:39] [EMAIL PROTECTED]

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

Reply via email to