|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-06 22:20 UTC] tony2001@php.net
[2006-06-06 22:43 UTC] krzycho at wapp dot pl
[2006-06-06 22:55 UTC] tony2001@php.net
[2006-06-06 23:43 UTC] krzycho at wapp dot pl
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 22:00:01 2025 UTC |
Description: ------------ some flags don't work correctly, cause returned value is not value returned by the recv() function... some flags work correct(ex. MSG_PEEK), cause it don't modify value returned by the recv. sockets.c (line 322): m = recv(bsd_socket, (void *) t, 1, flags); sockets.c (line 341): return n; should be when we use some flags: return m; Reproduce code: --------------- define("MSG_OOB", 1); define("MSG_PEEK", 2); define("MSG_DONTROUTE", 4); define("MSG_EOR", 8); define("MSG_TRUNC", 16); define("MSG_CTRUNC", 32); define("MSG_WAITALL", 64); $flag=socket_recv($read, $data, 1024, MSG_TRUNC); echo $flag;