Bug #16664 Updated: PHP crashes on socket_bind
| From: | tech at kalyweb dot com | Date: | Thu, 18 Apr 2002 10:18:50 +0000 |
| Subject: | Bug #16664 Updated: PHP crashes on socket_bind | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-5276@lists.php.net to get a copy of this message | ||
ID: 16664
Updated by: tech@kalyweb.com
Reported By: tech@kalyweb.com
-Status: Feedback
+Status: Open
-Bug Type: Sockets related
+Bug Type: *PDF functions
Operating System: Windows 98
PHP Version: 4.2.0
New Comment:
Here is a small example of script ...
if (($sock = socket_create (AF_INET, SOCK_STREAM, 0)) < 0) {
echo "socket_create() failed: reason: " . socket_strerror ($sock) .
"\n";
}
if (($ret = socket_bind ($sock, '127.0.0.1', 10000)) < 0) {
echo "socket_bind() failed: reason: " . socket_strerror ($ret) .
"\n";
}
PHP crashes here, on the socket_bind command.
This script was found on the page about the socket functions. I've
downloaded the last RC version but it also crashes.
I have the window's dialog with 'Close', 'Debug' or 'Deltails
>>' ...
Previous Comments:
------------------------------------------------------------------------
[2002-04-17 16:03:32] mfischer@php.net
Please provide a short, self-contained sample (see the bug's do's and
don'ts).
------------------------------------------------------------------------
[2002-04-17 13:32:08] tech@kalyweb.com
When I attempt to bind a socket with socket_bind, PHP crashes.
It doesn't crash if the IP to bind to is an mepty string ("") ...
I have this error in the crash dialog :
PHP a causé une défaillance de page dans
le module MSVCRT.DLL à 0167:78011f41.
Registres :
EAX=00002741 CS=0167 EIP=78011f41 EFLGS=00010206
EBX=00000073 SS=016f ESP=0063ee90 EBP=0063f0e4
ECX=00002741 DS=016f ESI=7ffffffe FS=c617
EDX=7fffffff ES=016f EDI=01447538 GS=0000
Octets à CS : EIP :
80 38 00 74 03 40 eb f1 2b c1 e9 85 fe ff ff c7
État de la pile :
00000002 01172d94 0000000c 00023c30 bff7b30e 00410000 bff7b317 00410000
00000001 00413768 0000ffff 00023c30 0041374c 0063ef0c bff7b953 00410000
(it's in French and my windows is French ... sorry :D )
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16664&edit=1