note 117864 added to function.socket-recvfrom

From: Date: Fri, 21 Aug 2015 22:24:34 +0000
Subject: note 117864 added to function.socket-recvfrom
Groups: php.notes 
Request: Send a blank email to php-notes+get-203415@lists.php.net to get a copy of this message
If you use socket_recvfrom on a UDP socket and combine it with the MSG_DONTWAIT flag, it will raise a PHP Warning if there is nothing to read. AFAIK, there is no way around that warning except suppressing it with @ (i.e. you cannot check if there is data before calling socket_recvfrom). ---- Server IP: 72.52.91.14 Probable Submitter: 2001:470:b6b4::a2 ---- Manual Page -- http://php.net/manual/en/function.socket-recvfrom.php Edit -- https://master.php.net/note/edit/117864 Del: integrated -- https://master.php.net/note/delete/117864/integrated Del: useless -- https://master.php.net/note/delete/117864/useless Del: bad code -- https://master.php.net/note/delete/117864/bad+code Del: spam -- https://master.php.net/note/delete/117864/spam Del: non-english -- https://master.php.net/note/delete/117864/non-english Del: in docs -- https://master.php.net/note/delete/117864/in+docs Del: other reasons-- https://master.php.net/note/delete/117864 Reject -- https://master.php.net/note/reject/117864 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#203415) next »