ID: 29431
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Feedback
+Status: Closed
Bug Type: Network related
Operating System: Linux 2.4
PHP Version: 4.3.7
New Comment:
Fixed in HEAD.
Previous Comments:
------------------------------------------------------------------------
[2004-07-29 01:00:25] [EMAIL PROTECTED]
Does it segfault if you disable the sockets extension?
(Looking into your script now, but the valgrind output indicates that
ext/sockets is still a bad choice)
------------------------------------------------------------------------
[2004-07-28 17:31:09] [EMAIL PROTECTED]
Description:
------------
PHP 5 HEAD segfaults with the given code.
Below are URLs with valgrind/gdb output.
Reproduce code:
---------------
<?
$socket = stream_socket_server("udp://127.0.0.1:13", $errno, $errstr,
STREAM_SERVER_BIND);
if (!$socket)
die("$errstr ($errno)");
do {
$pkt = stream_socket_recvfrom($socket, 1, 0, $peer);
stream_socket_sendto($socket, date("D M j H:i:s Y\r\n"), 0, $peer);
} while ($pkt !== false);
?>
Actual result:
--------------
http://testes.aborla.net/gdb.txt
http://testes.aborla.net/out.pid7736
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29431&edit=1