From ec30d8178d4b122393bf8585ea0a1edf277e6b80 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Mon, 3 Mar 2014 16:50:35 +0800 Subject: [PATCH] Fixed proc_open's reference argument --- ext/standard/proc_open.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.50.1