Blocked/Non-blocked streams bug
| From: | Ingwie Phoenix) | Date: | Mon, 20 Apr 2015 12:03:28 +0000 |
| Subject: | Blocked/Non-blocked streams bug | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-85876@lists.php.net to get a copy of this message | ||
Hello everyone-
While looking at a project I was considering to use, I found that the README mentioned a bug for http://php.net/stream_set_blocking . The bug only
talks about the Windows version of PHP, where the switching appearantly does not work Turns out I
got the same result. The code that produced following output is here: https://bugs.php.net/bug.php?id=47918
5.5.14 Darwin cli
INI:/etc/php.ini
Array
(
[stream_type] => STDIO
[mode] => r
[unread_bytes] => 0
[seekable] =>
[timed_out] =>
[blocked] => 1
[eof] =>
)
Successfully to set blocking mode to non-blocking
Array
(
[stream_type] => STDIO
[mode] => r
[unread_bytes] => 0
[seekable] =>
[timed_out] =>
[blocked] => 1
[eof] =>
)
Why is the mode not changing?
Kind regards, Ingwie