Bug #69963 [Fbk->Asn]: fgets reads EOF if there is nothing on the PIPE to read for a short period
Edit report at https://bugs.php.net/bug.php?id=69963&edit=1
ID: 69963
User updated by: poonam dot chawla at mathworks dot com
Reported by: poonam dot chawla at mathworks dot com
Summary: fgets reads EOF if there is nothing on the PIPE to
read for a short period
-Status: Feedback
+Status: Assigned
Type: Bug
Package: Streams related
Operating System: Windows
PHP Version: 5.6.10
Assigned To: ab
Block user comment: N
Private report: N
New Comment:
Thank you so much. I will try the patch and update this bug report.
Poonam
Previous Comments:
------------------------------------------------------------------------
[2015-07-02 20:19:46] ab@php.net
@poonam, this patch has landed in master, if you haven't tested yet, please take the latest
master snapshot http://windows.php.net/downloads/snaps/master/
Thanks.
------------------------------------------------------------------------
[2015-07-01 14:58:24] ab@php.net
Hi,
could you please check the build http://windows.php.net/downloads/snaps/ostc/69900/
which is linked in this mail http://news.php.net/php.internals/86976 ? Please
be aware that you'll need add a stream context. The patch is unlikely to appear in PHP5, but in
PHP7.
Though be aware that forcing blocking reads on pipes, you're putting yourself under the risk to
experience dead locks, see #64438. When used carefully, it still can work and be useful.
Thanks.
------------------------------------------------------------------------
[2015-06-30 13:27:18] poonam dot chawla at mathworks dot com
My apologies. That is correct.
------------------------------------------------------------------------
[2015-06-30 11:30:05] ab@php.net
@poonam, you obviously meant feof, not fgets?
Thanks.
------------------------------------------------------------------------
[2015-06-29 21:17:42] poonam dot chawla at mathworks dot com
Hi,
Thanks for an early response. It is a WINDOWS ONLY issue but unfortunately not the same one.
69900 : The issue/bug is that for every fgets call process hangs for 100ms.
However, in the issue I am experiencing there is no delay/hang on fgets.
Thanks,
Poonam
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=69963
--
Edit this bug report at https://bugs.php.net/bug.php?id=69963&edit=1
Thread (9 messages)