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
commit03b39896a6df71fb0ccf379a9148eba910f6eb84 (patch)
treea8c9faba450e3c33c7b55b03138753a7b80188b1 /ext/standard/proc_open.c
parentb7354a30cd059491a98ade432b76c680dc66706d (diff)
downloadphp-git-03b39896a6df71fb0ccf379a9148eba910f6eb84.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 bc9f7b1ba2..d91699e4ed 100644
--- a/ext/standard/proc_open.c
+++ b/ext/standard/proc_open.c
@@ -451,7 +451,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"