Bug #52887 [Opn->Fbk]: socket_recv MSG_PEEK bug
| From: | cataphract@php.net | Date: | Sun, 19 Sep 2010 16:35:27 +0000 |
| Subject: | Bug #52887 [Opn->Fbk]: socket_recv MSG_PEEK bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-154489@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52887&edit=1
ID: 52887
Updated by: cataphract@php.net
Reported by: bitset at ya dot ru
Summary: socket_recv MSG_PEEK bug
-Status: Open
+Status: Feedback
Type: Bug
Package: Sockets related
Operating System: Debian Linux
PHP Version: 5.3.3
Block user comment: N
New Comment:
I'm not sure what the problem is here. Did it return 0 or not? What were
you expecting it to return?
Can you provide a complete yet short script that exemplifies the
problem, together with its expected and actual output?
Previous Comments:
------------------------------------------------------------------------
[2010-09-19 09:24:46] bitset at ya dot ru
Description:
------------
if TCP-buffer is empty then function socket_recv(.., MSG_PEEK) can't
returned zero
example:
$buf = "";
$n = socket_recv($icq->socket, $buf, 125, MSG_PEEK );
Expected result:
----------------
if TCP-buffer is empty then function socket_recv(.., MSG_PEEK) must
returned zero
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52887&edit=1