From: [EMAIL PROTECTED] Operating system: WinNT 4.0 SP 6 PHP version: 4.3.0 PHP Bug Type: Sockets related Bug description: socket_bind() with invalid address crashes php.exe
Any call to socket_bind() which would fail will cause php.exe to crash: Exception: access violation (0xc0000005), Address 0x10011b1b Sample: <? $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); $socket2 = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); socket_bind($socket, "127.0.0.1", 5799); socket_bind($socket2, "127.0.0.1", 5799); ?> OR <? $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); socket_bind($socket, '1.1.1.1', 4567); ?> I used the windows build available from www.php.net, and I also used the php-ini.recommended, except that I uncommented the lines to load the modules php_bz2.dll, php_sockets.dll, php_zip.dll. NOTE: In retrospect, this may be the same bug as #21585 http://bugs.php.net/21585 -- Edit bug report at http://bugs.php.net/?id=21588&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21588&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21588&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21588&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21588&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21588&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21588&r=support Expected behavior: http://bugs.php.net/fix.php?id=21588&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21588&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21588&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21588&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21588&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21588&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21588&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21588&r=gnused