note 100842 added to function.stream-select

From: Date: Wed, 10 Nov 2010 15:56:21 +0000
Subject: note 100842 added to function.stream-select
Groups: php.notes 
Request: Send a blank email to php-notes+get-173919@lists.php.net to get a copy of this message
stream_select() looks deceptively like a simple wrapper around POSIX select(2). But beware: while select(2) allows you to pass no file descriptors and use it as a "portable subsecond sleep", PHP will complain with "Warning: stream_select(): No stream arrays were passed in ****" if all arrays are empty or null, and it WONT sleep, it will return immediately. So... if the number of file descriptors you have isn't static, you have to deal with the special case yourself. ---- Server IP: 87.54.44.10 Probable Submitter: 80.198.68.163 ---- Manual Page -- http://www.php.net/manual/en/function.stream-select.php Edit -- https://master.php.net/note/edit/100842 Del: integrated -- https://master.php.net/note/delete/100842/integrated Del: useless -- https://master.php.net/note/delete/100842/useless Del: bad code -- https://master.php.net/note/delete/100842/bad+code Del: spam -- https://master.php.net/note/delete/100842/spam Del: non-english -- https://master.php.net/note/delete/100842/non-english Del: in docs -- https://master.php.net/note/delete/100842/in+docs Del: other reasons-- https://master.php.net/note/delete/100842 Reject -- https://master.php.net/note/reject/100842 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#173919) next »