|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-04-23 04:22 UTC] laruence@php.net
[2016-04-23 04:22 UTC] laruence@php.net
-Status: Open
+Status: Closed
[2016-07-20 11:31 UTC] davey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 23:00:02 2025 UTC |
Description: ------------ Creating references to socket resources causes these resources to no longer work in stream_select. Test script: --------------- $r = [stream_socket_server("tcp://127.0.0.1:0", $errno, $errStr)]; $w = NULL; $e = NULL; // Without this line, all is well: $dummy =& $r[0]; print stream_select($r, $w, $e, 3); Expected result: ---------------- The script should hang for 3s. This is indeed what happens with PHP 5. Actual result: -------------- PHP Warning: stream_select(): supplied argument is not a valid stream resource in test.php on line 10 PHP Warning: stream_select(): No stream arrays were passed in test.php on line 10