From 4465b371057fee855dc37fa3611158664c70b954 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 28 Jun 2017 10:21:19 +0200 Subject: [PATCH] Fix zend_get_zval_ptr() --- Zend/zend_execute.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.50.1