From: Wez Furlong Date: Thu, 23 May 2002 10:17:07 +0000 (+0000) Subject: Fix (stupid) segfault. #17379 X-Git-Tag: RELEASE_0_10~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fd00c9502cdb2e18065c2fcbf4b96e1b5d96094;p=php Fix (stupid) segfault. #17379 --- diff --git a/ext/standard/exec.c b/ext/standard/exec.c index 58c7363f5b..839d09a7a1 100644 --- a/ext/standard/exec.c +++ b/ext/standard/exec.c @@ -591,16 +591,16 @@ PHP_MINIT_FUNCTION(proc_open) close a process opened by proc_open */ PHP_FUNCTION(proc_close) { - zval **proc; + zval *proc; void *child; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &proc) == FAILURE) { RETURN_FALSE; } - ZEND_FETCH_RESOURCE(child, void *, proc, -1, "process", le_proc_open); + ZEND_FETCH_RESOURCE(child, void *, &proc, -1, "process", le_proc_open); - zend_list_delete(Z_LVAL_PP(proc)); + zend_list_delete(Z_LVAL_P(proc)); RETURN_LONG(FG(pclose_ret)); } /* }}} */