cvs: php4 /ext/standard proc_open.c
| From: | Shane Caraveo | Date: | Mon, 17 Feb 2003 05:47:56 +0000 |
| Subject: | cvs: php4 /ext/standard proc_open.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-18902@lists.php.net to get a copy of this message | ||
shane Mon Feb 17 00:47:56 2003 EDT
Modified files:
/php4/ext/standard proc_open.c
Log:
fix it the right way
Index: php4/ext/standard/proc_open.c
diff -u php4/ext/standard/proc_open.c:1.7 php4/ext/standard/proc_open.c:1.8
--- php4/ext/standard/proc_open.c:1.7 Sun Feb 16 22:26:16 2003
+++ php4/ext/standard/proc_open.c Mon Feb 17 00:47:56 2003
@@ -15,7 +15,7 @@
| Author: Wez Furlong <wez@thebrainroom.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: proc_open.c,v 1.7 2003/02/17 03:26:16 shane Exp $ */
+/* $Id: proc_open.c,v 1.8 2003/02/17 05:47:56 shane Exp $ */
#include <stdio.h>
#include "php.h"
@@ -476,7 +476,7 @@
struct php_process_handle *proc;
int is_persistent = 0; /* TODO: ensure that persistent procs will work */
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "saz/|sa!", &command,
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "saz/|s!a!", &command,
&command_len, &descriptorspec, &pipes, &cwd, &cwd_len, &environment) ==
FAILURE) {
RETURN_FALSE;
}
@@ -484,8 +484,6 @@
if (FAILURE == php_make_safe_mode_command(command, &command, is_persistent TSRMLS_CC)) {
RETURN_FALSE;
}
-
- command_len = strlen(command);
if (cwd_len==0) cwd = NULL;