From: Shane Caraveo Date: Mon, 17 Feb 2003 05:47:56 +0000 (+0000) Subject: fix it the right way X-Git-Tag: RELEASE_0_5~950 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb6b7e80be7ae030ea135f310392fd913880abaf;p=php fix it the right way --- diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index 5d3e270223..8a41253730 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -476,7 +476,7 @@ PHP_FUNCTION(proc_open) 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; } @@ -485,8 +485,6 @@ PHP_FUNCTION(proc_open) RETURN_FALSE; } - command_len = strlen(command); - if (cwd_len==0) cwd = NULL; if (environment) {