summaryrefslogtreecommitdiff
path: root/ext/standard/tests/streams/nonblocking_stdin.phpt
blob: 0e22190fb7c16c38e806acae97dcea668b45bb4c (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Read from non-blocking stdio stream should not error
--FILE--
<?php

stream_set_blocking(STDIN, false);
var_dump(fread(STDIN, 1));

?>
--EXPECT--
string(0) ""