ID: 29431 Updated by: [EMAIL PROTECTED] -Summary: segfault using stream_* with UDP Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Network related -Operating System: all +Operating System: Linux 2.4 -PHP Version: 5CVS-2004-07-28 (dev) +PHP Version: 4.3.7 New Comment:
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) Previous Comments: ------------------------------------------------------------------------ [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