windows上的stream_set_blocking php

时间:2017-07-07 04:05:34

标签: php

为什么stream_set_blocking无法在Windows上运行..?

这里有一些使用stream_set_blocking

的代码
php -r "stream_set_blocking(STDIN, FALSE);echo fread(STDIN, 10);"
在Linux上它立即退出。 (正确的行为)

在Windows上

它将挂起输入。 (不正确的行为,它忽略了非阻塞设置。)

0 个答案:

没有答案