From: Shane Caraveo Date: Mon, 17 Feb 2003 03:26:16 +0000 (+0000) Subject: If you pass NULL, you do not get a NULL value, make sure it is. X-Git-Tag: RELEASE_0_5~953 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=354a7d804bb216699fa31bf668f55225ef56e373;p=php If you pass NULL, you do not get a NULL value, make sure it is. --- diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index 5e91fec7f8..5d3e270223 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -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 {