From: david dot schueler at wapkamera dot de Operating system: Gentoo Linux PHP version: 5.2.10 PHP Bug Type: Streams related Bug description: fwrite doesn't send "REGISTER" to udp port 5060
Description: ------------ If i execute the script below, it will not send the text "REGISTER" over UDP. If the text is prepended with any other character or sent to another port it will be transmitted successful. Reproduce code: --------------- <?php $opts = array('socket' => array("bindto" => "0:5050")); // set source port = 5050 $context = stream_context_create($opts); $socket = stream_socket_client("udp://127.0.0.1:5060", $errno, $error, 30, STREAM_CLIENT_CONNECT, $context); fwrite($socket,'REGISTER \r\n'); ?> Expected result: ---------------- The text "REGISTER" followed by a line break to be send over UDP to the given host and port. Actual result: -------------- Nothing happens. No packet gets generated, no error or warning is thrown. fwrite() retuns 0. -- Edit bug report at http://bugs.php.net/?id=49423&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49423&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49423&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49423&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49423&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49423&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49423&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49423&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49423&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49423&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49423&r=support Expected behavior: http://bugs.php.net/fix.php?id=49423&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49423&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49423&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49423&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49423&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49423&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49423&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49423&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49423&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49423&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49423&r=mysqlcfg