> On 4 Dec 2014, at 10:38, Yasuo Ohgaki <yohg...@ohgaki.net> wrote:
> 
> 
> Yet another sample code. This cannot be executed on 3v4l.org for security
> reasons.
> 
> <?php
> $sock = fsockopen('www.php.net', '80');
> var_dump($sock);
> 
> $socks = array($sock);
> var_dump(stream_select($socks, $socks, $socks, 1));
> 
> //var_dump(stream_select(array($sock), array($sock), array($sock), 1));
> //Fatal error: Only variables can be passed by reference in
> /home/yohgaki/tmp/ttt.php on line 8
> ?>

Using stream_select without real variables like that is weird, what’s the 
point? You’ve discarded the read/write/error information, all the return value 
tells you is that *something* changed.

--
Andrea Faulds
http://ajf.me/





--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to