From eb6b7e80be7ae030ea135f310392fd913880abaf Mon Sep 17 00:00:00 2001 From: Shane Caraveo Date: Mon, 17 Feb 2003 05:47:56 +0000 Subject: [PATCH] fix it the right way --- ext/standard/proc_open.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) { -- 2.50.1