]> granicus.if.org Git - php/commitdiff
fix it the right way
authorShane Caraveo <shane@php.net>
Mon, 17 Feb 2003 05:47:56 +0000 (05:47 +0000)
committerShane Caraveo <shane@php.net>
Mon, 17 Feb 2003 05:47:56 +0000 (05:47 +0000)
ext/standard/proc_open.c

index 5d3e27022369f302622d20cd05617160ab83f210..8a4125373049ae3416d7d19e9406b315c0a1d252 100644 (file)
@@ -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) {