|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52887 socket_recv MSG_PEEK bug
Submitted: 2010-09-19 09:24 UTC Modified: 2013-02-18 00:34 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: bitset at ya dot ru Assigned:
Status: No Feedback Package: Sockets related
PHP Version: 5.3.3 OS: Debian Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: bitset at ya dot ru
New email:
PHP Version: OS:


 [2010-09-19 09:24 UTC] bitset at ya dot ru
if TCP-buffer is empty then function socket_recv(.., MSG_PEEK) can't returned zero


$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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-19 18:35 UTC]
-Status: Open +Status: Feedback
 [2010-09-19 18:35 UTC]
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?
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 09 18:01:28 2023 UTC