From: Nikita Popov Date: Wed, 28 Jun 2017 08:21:19 +0000 (+0200) Subject: Fix zend_get_zval_ptr() X-Git-Tag: php-7.2.0alpha3~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4465b371057fee855dc37fa3611158664c70b954;p=php Fix zend_get_zval_ptr() --- diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 3159766bc5..09aa4576ff 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -3077,16 +3077,20 @@ ZEND_API zval *zend_get_zval_ptr(int op_type, const znode_op *node, const zend_e case IS_CONST: ret = EX_CONSTANT(*node); *should_free = NULL; + break; case IS_TMP_VAR: case IS_VAR: ret = EX_VAR(node->var); *should_free = ret; + break; case IS_CV: ret = EX_VAR(node->var); *should_free = NULL; + break; default: ret = NULL; *should_free = ret; + break; } return ret; }