summaryrefslogtreecommitdiff
path: root/ext/standard/proc_open.c
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2011-10-24 12:39:55 +0000
committerPierre Joye <pajoye@php.net>2011-10-24 12:39:55 +0000
commit97076fa68e71c6afda4706a4f1f6d2a87ded6e26 (patch)
treef1bcc00265e7f70f8eaaa08c0dc89ef0f4871e42 /ext/standard/proc_open.c
parent4321da0388bf55bfa4be8d8c865ef771b08ba953 (diff)
downloadphp-git-97076fa68e71c6afda4706a4f1f6d2a87ded6e26.tar.gz
- fixed bug #60120, proc_open's streams may hang with stdin/out/err when the data exceeds or is equal to 2048 bytes
Diffstat (limited to 'ext/standard/proc_open.c')
-rw-r--r--ext/standard/proc_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c
index c8ce705251..1caa56945d 100644
--- a/ext/standard/proc_open.c
+++ b/ext/standard/proc_open.c
@@ -377,7 +377,7 @@ PHP_FUNCTION(proc_get_status)
/* {{{ handy definitions for portability/readability */
#ifdef PHP_WIN32
-# define pipe(pair) (CreatePipe(&pair[0], &pair[1], &security, 2048L) ? 0 : -1)
+# define pipe(pair) (CreatePipe(&pair[0], &pair[1], &security, 0) ? 0 : -1)
# define COMSPEC_NT "cmd.exe"