summaryrefslogtreecommitdiff
path: root/ext/standard/tests/streams/bug72075.phpt
blob: 93dce6035005d1136a2a0428c8f7f86b40ce556b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Bug #72075 (Referencing socket resources breaks stream_select)
--FILE--
<?php
$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, 0.5);

--EXPECT--
0