From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version: 4.1.2
PHP Bug Type: Apache related
Bug description: socket_set_timeout
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 bug report at http://bugs.php.net/?id=16326&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16326&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16326&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16326&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16326&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16326&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16326&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16326&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16326&r=submittedtwice