Bug #68432 [Opn->Fbk]: socket_read
| From: | requinix@php.net | Date: | Mon, 17 Nov 2014 04:14:51 +0000 |
| Subject: | Bug #68432 [Opn->Fbk]: socket_read | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-188628@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68432&edit=1
ID: 68432
Updated by: requinix@php.net
Reported by: cheeto_crunch at yahoo dot com
Summary: socket_read
-Status: Open
+Status: Feedback
Type: Bug
Package: Sockets related
Operating System: Debian / Irrelevant
PHP Version: 5.6Git-2014-11-17 (Git)
Block user comment: N
Private report: N
New Comment:
Not much to do until we can see that code. Reopen this when you have it ready.
Previous Comments:
------------------------------------------------------------------------
[2014-11-17 03:57:26] cheeto_crunch at yahoo dot com
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 this bug report at https://bugs.php.net/bug.php?id=68432&edit=1