summaryrefslogtreecommitdiff
path: root/ext/standard/proc_open.h
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2014-12-18 15:28:01 +0300
committerAntony Dovgal <tony2001@php.net>2015-05-29 15:30:06 +0300
commitad60549958bf1dafdff79431d52af28385a39c9c (patch)
tree0c485781e9282f9932918c93d404684ef5b7a9ff /ext/standard/proc_open.h
parent6f46fa376bc3452617fa566917320237b687fd7e (diff)
downloadphp-git-ad60549958bf1dafdff79431d52af28385a39c9c.tar.gz
remove hardcoded limit on number of pipes in proc_open()
Diffstat (limited to 'ext/standard/proc_open.h')
-rw-r--r--ext/standard/proc_open.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/standard/proc_open.h b/ext/standard/proc_open.h
index 13177ce2b0..52e5c1ed87 100644
--- a/ext/standard/proc_open.h
+++ b/ext/standard/proc_open.h
@@ -25,8 +25,6 @@ typedef int php_file_descriptor_t;
typedef pid_t php_process_id_t;
#endif
-#define PHP_PROC_OPEN_MAX_DESCRIPTORS 16
-
/* Environment block under win32 is a NUL terminated sequence of NUL terminated
* name=value strings.
* Under unix, it is an argv style array.
@@ -44,7 +42,7 @@ struct php_process_handle {
HANDLE childHandle;
#endif
int npipes;
- zend_resource *pipes[PHP_PROC_OPEN_MAX_DESCRIPTORS];
+ zend_resource **pipes;
char *command;
int is_persistent;
php_process_env_t env;