From: Xinchen Hui Date: Mon, 3 Mar 2014 08:50:35 +0000 (+0800) Subject: Fixed proc_open's reference argument X-Git-Tag: POST_PHPNG_MERGE~412^2~443 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec30d8178d4b122393bf8585ea0a1edf277e6b80;p=php Fixed proc_open's reference argument --- diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index 18638ddad8..2728cc3a6e 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -897,8 +897,11 @@ PHP_FUNCTION(proc_open) proc->env = env; if (pipes != NULL) { + ZEND_ASSERT(Z_ISREF_P(pipes)); + pipes = Z_REFVAL_P(pipes); zval_dtor(pipes); - } + } + array_init(pipes); #if PHP_CAN_DO_PTS