From 28abaa892f7056bd4736fd73069f6188832189b4 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Tue, 8 Sep 2020 09:40:48 +0000 Subject: [PATCH] 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 --- reference/stream/functions/stream-select.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reference/stream/functions/stream-select.xml b/reference/stream/functions/stream-select.xml index 8549844374..11d6c08ae4 100644 --- a/reference/stream/functions/stream-select.xml +++ b/reference/stream/functions/stream-select.xml @@ -210,11 +210,16 @@ if (false === stream_select($r, $w, $e, 0)) { + Windows compatibility Use of stream_select on file descriptors returned by proc_open will fail and return &false; under Windows. + + STDIN from a console changes status as soon as any + input events are available, but reading from the stream may still block. +