Bug #16664 Updated: PHP crashes on socket_bind
ID: 16664 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -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', 1)) 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] [EMAIL PROTECTED] Please provide a short, self-contained sample (see the bug's do's and don'ts). [2002-04-17 13:32:08] [EMAIL PROTECTED] 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=2741 CS=0167 EIP=78011f41 EFLGS=00010206 EBX=0073 SS=016f ESP=0063ee90 EBP=0063f0e4 ECX=2741 DS=016f ESI=7ffe FS=c617 EDX=7fff ES=016f EDI=01447538 GS= Octets à CS : EIP : 80 38 00 74 03 40 eb f1 2b c1 e9 85 fe ff ff c7 État de la pile : 0002 01172d94 000c 00023c30 bff7b30e 0041 bff7b317 0041 0001 00413768 00023c30 0041374c 0063ef0c bff7b953 0041 (it's in French and my windows is French ... sorry :D ) -- Edit this bug report at http://bugs.php.net/?id=16664edit=1
Bug #16664 Updated: PHP crashes on socket_bind
ID: 16664 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open -Bug Type: *PDF functions +Bug Type: Sockets related Operating System: Windows 98 PHP Version: 4.2.0 New Comment: The category has changed to PDF functions (I made a mistake while filling the form ?? ). Changing back to 'Socket related' ... Previous Comments: [2002-04-18 06:18:49] [EMAIL PROTECTED] 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', 1)) 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 ' ... [2002-04-17 16:03:32] [EMAIL PROTECTED] Please provide a short, self-contained sample (see the bug's do's and don'ts). [2002-04-17 13:32:08] [EMAIL PROTECTED] 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=2741 CS=0167 EIP=78011f41 EFLGS=00010206 EBX=0073 SS=016f ESP=0063ee90 EBP=0063f0e4 ECX=2741 DS=016f ESI=7ffe FS=c617 EDX=7fff ES=016f EDI=01447538 GS= Octets à CS : EIP : 80 38 00 74 03 40 eb f1 2b c1 e9 85 fe ff ff c7 État de la pile : 0002 01172d94 000c 00023c30 bff7b30e 0041 bff7b317 0041 0001 00413768 00023c30 0041374c 0063ef0c bff7b953 0041 (it's in French and my windows is French ... sorry :D ) -- Edit this bug report at http://bugs.php.net/?id=16664edit=1
Bug #16664 Updated: PHP crashes on socket_bind
ID: 16664 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Sockets related Operating System: Windows 98 PHP Version: 4.2.0 New Comment: Ok, I can't reproduce this on w2k (I don't have a w98 system to test). First, try if it works on w2k for you. If it works, we know it's w98 system problem and we can dig furhter into that direction. Second, your return checking's aren't very good. socket_create() returns either resource or false, but not something which we would say is ' 0'. The same for socket_bind(), it returns an boolean, true or false, nothing else. (that's from the source, the documentation on php.net is outdated as there have been recent changes to the sources). Previous Comments: [2002-04-18 06:20:11] [EMAIL PROTECTED] The category has changed to PDF functions (I made a mistake while filling the form ?? ). Changing back to 'Socket related' ... [2002-04-18 06:18:49] [EMAIL PROTECTED] 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', 1)) 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 ' ... [2002-04-17 16:03:32] [EMAIL PROTECTED] Please provide a short, self-contained sample (see the bug's do's and don'ts). [2002-04-17 13:32:08] [EMAIL PROTECTED] 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=2741 CS=0167 EIP=78011f41 EFLGS=00010206 EBX=0073 SS=016f ESP=0063ee90 EBP=0063f0e4 ECX=2741 DS=016f ESI=7ffe FS=c617 EDX=7fff ES=016f EDI=01447538 GS= Octets à CS : EIP : 80 38 00 74 03 40 eb f1 2b c1 e9 85 fe ff ff c7 État de la pile : 0002 01172d94 000c 00023c30 bff7b30e 0041 bff7b317 0041 0001 00413768 00023c30 0041374c 0063ef0c bff7b953 0041 (it's in French and my windows is French ... sorry :D ) -- Edit this bug report at http://bugs.php.net/?id=16664edit=1
Bug #16664 Updated: PHP crashes on socket_bind
ID: 16664 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: Sockets related Operating System: Windows 9x PHP Version: 4.2.0 New Comment: The CSV version doesn't include this bug anymore. Just one more thing : socket_bind() returns '' on success ... Previous Comments: [2002-04-18 07:34:08] [EMAIL PROTECTED] This problem doesn't happens on w2k ... It's w9x specific problem (win95 is also concerned). PS: My test code was found in the documentation. I've updated my code ... PS2: I'll look in the source and do some tries to find a way to fix this bug (I have VC++, I could use another compiler but I have only this one). I know it's a bind error and if the IP is changed to no error happens ... [2002-04-18 07:21:39] [EMAIL PROTECTED] Ok, I can't reproduce this on w2k (I don't have a w98 system to test). First, try if it works on w2k for you. If it works, we know it's w98 system problem and we can dig furhter into that direction. Second, your return checking's aren't very good. socket_create() returns either resource or false, but not something which we would say is ' 0'. The same for socket_bind(), it returns an boolean, true or false, nothing else. (that's from the source, the documentation on php.net is outdated as there have been recent changes to the sources). [2002-04-18 06:20:11] [EMAIL PROTECTED] The category has changed to PDF functions (I made a mistake while filling the form ?? ). Changing back to 'Socket related' ... [2002-04-18 06:18:49] [EMAIL PROTECTED] 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', 1)) 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 ' ... [2002-04-17 16:03:32] [EMAIL PROTECTED] Please provide a short, self-contained sample (see the bug's do's and don'ts). The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16664 -- Edit this bug report at http://bugs.php.net/?id=16664edit=1
Bug #16664 Updated: PHP crashes on socket_bind
ID: 16664 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Sockets related Operating System: Windows 9x PHP Version: 4.2.0 New Comment: Oops !! I made an error, socket_bind returns 1 on success. True = -1 Previous Comments: [2002-04-18 09:17:28] [EMAIL PROTECTED] The CSV version doesn't include this bug anymore. Just one more thing : socket_bind() returns '' on success ... [2002-04-18 07:34:08] [EMAIL PROTECTED] This problem doesn't happens on w2k ... It's w9x specific problem (win95 is also concerned). PS: My test code was found in the documentation. I've updated my code ... PS2: I'll look in the source and do some tries to find a way to fix this bug (I have VC++, I could use another compiler but I have only this one). I know it's a bind error and if the IP is changed to no error happens ... [2002-04-18 07:21:39] [EMAIL PROTECTED] Ok, I can't reproduce this on w2k (I don't have a w98 system to test). First, try if it works on w2k for you. If it works, we know it's w98 system problem and we can dig furhter into that direction. Second, your return checking's aren't very good. socket_create() returns either resource or false, but not something which we would say is ' 0'. The same for socket_bind(), it returns an boolean, true or false, nothing else. (that's from the source, the documentation on php.net is outdated as there have been recent changes to the sources). [2002-04-18 06:20:11] [EMAIL PROTECTED] The category has changed to PDF functions (I made a mistake while filling the form ?? ). Changing back to 'Socket related' ... [2002-04-18 06:18:49] [EMAIL PROTECTED] 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', 1)) 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 ' ... The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16664 -- Edit this bug report at http://bugs.php.net/?id=16664edit=1
Bug #16664 Updated: PHP crashes on socket_bind
ID: 16664 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Closed +Status: Feedback Bug Type: Sockets related Operating System: Windows 9x PHP Version: 4.2.0 New Comment: Wait, did you test with CVS now?! It's supposed to ONLY return boolean false or true (from reading the source code). Can you verify this too please. Previous Comments: [2002-04-18 09:27:38] [EMAIL PROTECTED] Oops !! I made an error, socket_bind returns 1 on success. True = -1 [2002-04-18 09:17:28] [EMAIL PROTECTED] The CSV version doesn't include this bug anymore. Just one more thing : socket_bind() returns '' on success ... [2002-04-18 07:34:08] [EMAIL PROTECTED] This problem doesn't happens on w2k ... It's w9x specific problem (win95 is also concerned). PS: My test code was found in the documentation. I've updated my code ... PS2: I'll look in the source and do some tries to find a way to fix this bug (I have VC++, I could use another compiler but I have only this one). I know it's a bind error and if the IP is changed to no error happens ... [2002-04-18 07:21:39] [EMAIL PROTECTED] Ok, I can't reproduce this on w2k (I don't have a w98 system to test). First, try if it works on w2k for you. If it works, we know it's w98 system problem and we can dig furhter into that direction. Second, your return checking's aren't very good. socket_create() returns either resource or false, but not something which we would say is ' 0'. The same for socket_bind(), it returns an boolean, true or false, nothing else. (that's from the source, the documentation on php.net is outdated as there have been recent changes to the sources). [2002-04-18 06:20:11] [EMAIL PROTECTED] The category has changed to PDF functions (I made a mistake while filling the form ?? ). Changing back to 'Socket related' ... The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16664 -- Edit this bug report at http://bugs.php.net/?id=16664edit=1
Bug #16664 Updated: PHP crashes on socket_bind
ID: 16664 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Sockets related Operating System: Windows 98 PHP Version: 4.2.0 New Comment: Please provide a short, self-contained sample (see the bug's do's and don'ts). Previous Comments: [2002-04-17 13:32:08] [EMAIL PROTECTED] 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=2741 CS=0167 EIP=78011f41 EFLGS=00010206 EBX=0073 SS=016f ESP=0063ee90 EBP=0063f0e4 ECX=2741 DS=016f ESI=7ffe FS=c617 EDX=7fff ES=016f EDI=01447538 GS= Octets à CS : EIP : 80 38 00 74 03 40 eb f1 2b c1 e9 85 fe ff ff c7 État de la pile : 0002 01172d94 000c 00023c30 bff7b30e 0041 bff7b317 0041 0001 00413768 00023c30 0041374c 0063ef0c bff7b953 0041 (it's in French and my windows is French ... sorry :D ) -- Edit this bug report at http://bugs.php.net/?id=16664edit=1