php.net |  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
Votes:1
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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
3 - 1 = ?
Subscribe to this entry?

 
 [2010-09-19 09:24 UTC] 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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-19 18:35 UTC] cataphract@php.net
-Status: Open +Status: Feedback
 [2010-09-19 18:35 UTC] cataphract@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 23:01:29 2024 UTC