]> granicus.if.org Git - php/commitdiff
Fix zend_get_zval_ptr()
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 28 Jun 2017 08:21:19 +0000 (10:21 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 28 Jun 2017 08:21:32 +0000 (10:21 +0200)
Zend/zend_execute.c

index 3159766bc5e71b599cede616ce66e4c8b0439064..09aa4576ffe91866b0c161c90ac1de7c1951db71 100644 (file)
@@ -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;
 }