ID: 20553 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Sockets related Operating System: Mac OS X PHP Version: 4.3.0RC1 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip can't reproduce.. Previous Comments: ------------------------------------------------------------------------ [2002-11-21 17:46:19] [EMAIL PROTECTED] In php4.3.0RC2: When a new socket is created, the current error code for that socket is not initialized to 0. I recommend that it should be. The following code outputs: error: 1313166380: Unknown error: 1313166380 The value changes from time to time. <?php if ($listener_sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) { if ($error_code = socket_last_error($listener_sock)) { echo "error: $error_code: " . socket_strerror ($error_code)."\n"; } } ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20553&edit=1
