From:             [EMAIL PROTECTED]
Operating system: all
PHP version:      5CVS-2004-07-28 (dev)
PHP Bug Type:     Network related
Bug description:  segfault using stream_* with UDP

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 bug report at http://bugs.php.net/?id=29431&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29431&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29431&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29431&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29431&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29431&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29431&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29431&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29431&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29431&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29431&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29431&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29431&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29431&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29431&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29431&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29431&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29431&r=float

Reply via email to