Edit report at http://bugs.php.net/bug.php?id=52887&edit=1
ID: 52887 Updated by: cataphr...@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