]> granicus.if.org Git - php/commitdiff
you know it's time to get away from the keyboard when you do this.
authorShane Caraveo <shane@php.net>
Mon, 17 Feb 2003 06:45:37 +0000 (06:45 +0000)
committerShane Caraveo <shane@php.net>
Mon, 17 Feb 2003 06:45:37 +0000 (06:45 +0000)
fix my last fix

ext/standard/proc_open.c

index 2848652fdacc8973fd514b70cc022fb35f5ea3b1..58f1c29ade26b93ccce41a94ebf3ca1f6d5301ec 100644 (file)
@@ -485,9 +485,7 @@ PHP_FUNCTION(proc_open)
                RETURN_FALSE;
        }
 
-       if (cwd_len==0) {
-               cwd = NULL;
-       }
+       command_len = strlen(command);
 
        if (environment) {
                env = _php_array_to_envp(environment, is_persistent TSRMLS_CC);