Bug #68432 [NEW]: socket_read

From: Date: Mon, 17 Nov 2014 03:57:27 +0000
Subject: Bug #68432 [NEW]: socket_read
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188627@lists.php.net to get a copy of this message
From: cheeto_crunch at yahoo dot com Operating system: Debian / Irrelevant PHP version: 5.6Git-2014-11-17 (Git) Package: Sockets related Bug Type: Bug Bug description:socket_read Description: ------------ According to the PHP documentation, http://php.net/manual/en/function.socket-read.php, the type PHP_NORMAL_READ - reading stops at \n or \r. It is supposed to stop that read function after a \n or \r but it does not. How to duplicate: Create a client and a server, both in php. From the server, send multiple fast consecutive socket_write functions to the client. The client will read them all as one packet instead of separating them based on the \n or \r of the packet received. Test script: --------------- Will be pulling my code apart to recreate the bug. This will take some time as I will not be providing my entire code. (It would greatly complicate the issue). -- Edit bug report at https://bugs.php.net/bug.php?id=68432&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68432&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68432&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68432&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68432&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68432&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68432&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68432&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68432&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68432&r=support Expected behavior: https://bugs.php.net/fix.php?id=68432&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68432&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68432&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68432&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68432&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68432&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68432&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68432&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68432&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68432&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68432&r=mysqlcfg

« previous php.bugs (#188627) next »