Fix #65879: stream_select on STDIN returns 1 even on blocking stream

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350535 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2020-09-08 09:40:48 +00:00
parent a9216e9b44
commit 28abaa892f

View file

@ -210,11 +210,16 @@ if (false === stream_select($r, $w, $e, 0)) {
</para>
</note>
<note>
<title>Windows compatibility</title>
<para>
Use of <function>stream_select</function> on
file descriptors returned by <function>proc_open</function> will fail
and return &false; under Windows.
</para>
<para>
<constant>STDIN</constant> from a console changes status as soon as <emphasis>any</emphasis>
input events are available, but reading from the stream may still block.
</para>
</note>
</refsect1>