From 354a7d804bb216699fa31bf668f55225ef56e373 Mon Sep 17 00:00:00 2001 From: Shane Caraveo Date: Mon, 17 Feb 2003 03:26:16 +0000 Subject: [PATCH] If you pass NULL, you do not get a NULL value, make sure it is. --- ext/standard/proc_open.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { -- 2.40.0