Fixed proc_open's reference argument

This commit is contained in:
Xinchen Hui 2014-03-03 16:50:35 +08:00
parent 3e93cd9fd7
commit ec30d8178d

View File

@ -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