Edit report at https://bugs.php.net/bug.php?id=51800&edit=1
ID: 51800
Comment by: aserbulov at parallels dot com
Reported by: ph dot wolfer at googlemail dot com
Summary: proc_open on Windows hangs forever
Status: Closed
Type: Bug
Package: Streams related
Operating System: Windows
PHP Version: *
Assigned To: ab
Block user comment: N
Private report: N
New Comment:
Applied fix has a very bad side effect.
Let's rewrite process.php script:
---
sleep(60);
fwrite(STDOUT, 'done');
exit(0);
---
In this case you never get process output: feof($pipes[1]) will return true after ~18 seconds.
Previous Comments:
------------------------------------------------------------------------
[2014-09-30 17:17:33] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0c982798e01e5a48765aa5352f96066e77e36efd
Log: Fixed bug #51800 proc_open on Windows hangs forever
------------------------------------------------------------------------
[2014-09-29 14:47:50] ab@php.net
Related To: Bug #47918
------------------------------------------------------------------------
[2014-09-29 14:32:29] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0c982798e01e5a48765aa5352f96066e77e36efd
Log: Fixed bug #51800 proc_open on Windows hangs forever
------------------------------------------------------------------------
[2013-10-16 18:42:11] imprec at gmail dot com
Hello,
what's the state on this bug? It's quite annoying. Using file handles as a workaround does
not work very well on windows (see https://bugs.php.net/bug.php?id=65650).
Is there any plan to solve it? I'd be glad to contribute, but my skills are pretty bad at this
level :/
------------------------------------------------------------------------
[2013-05-08 06:33:55] pajoye@php.net
A good summary of the problem we are experiencing here:
http://blogs.msdn.com/b/oldnewthing/archive/2011/07/07/10183884.aspx
The fix is not that easy. Either using overlapped/async IO or threads.
------------------------------------------------------------------------
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=51800
--
Edit this bug report at https://bugs.php.net/bug.php?id=51800&edit=1