Bug #51800 [Com]: proc_open on Windows hangs forever

From: Date: Thu, 12 Feb 2015 12:22:01 +0000
Subject: Bug #51800 [Com]: proc_open on Windows hangs forever
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190626@lists.php.net to get a copy of this message
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


Thread (16 messages)

« previous php.bugs (#190626) next »