]> granicus.if.org Git - php/commitdiff
If you pass NULL, you do not get a NULL value, make sure it is.
authorShane Caraveo <shane@php.net>
Mon, 17 Feb 2003 03:26:16 +0000 (03:26 +0000)
committerShane Caraveo <shane@php.net>
Mon, 17 Feb 2003 03:26:16 +0000 (03:26 +0000)
ext/standard/proc_open.c

index 5e91fec7f8ab0786a9932a913d0e5391e482f886..5d3e27022369f302622d20cd05617160ab83f210 100644 (file)
@@ -486,7 +486,9 @@ PHP_FUNCTION(proc_open)
        }
 
        command_len = strlen(command);
-       
+
+       if (cwd_len==0) cwd = NULL;
+
        if (environment) {
                env = _php_array_to_envp(environment, is_persistent TSRMLS_CC);
        } else {