From: [EMAIL PROTECTED] Operating system: Windows ME PHP version: 4.2.3 PHP Bug Type: Sockets related Bug description: Error When host is not 127.0.0.1
When I attempt to create a socket on any host besides 127.0.0.1 (including my own IP) I get an error... Php has caused an error in MSCVRT.DLL Php will now close I call the script from the command line using php -q socket.php With the host set to 127.0.0.1 it works just fine. here is a cde piece. <?php $host="myipadress; $port=1863; set_time_limit(0); //create a new socket $socket=socket_create(AF_INET, SOCK_STREAM,0) or die("Could not create a socket\n"); //binds the socket $result=socket_bind($socket,$host,$port) or die("Could not bind socket\n"); ?> and I get the error. Note myipadress would be my actual IP adress, but i replaced it for security reasons. -- Edit bug report at http://bugs.php.net/?id=20232&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20232&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20232&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20232&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20232&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20232&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20232&r=support Expected behavior: http://bugs.php.net/fix.php?id=20232&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20232&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20232&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20232&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20232&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20232&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20232&r=isapi