]> granicus.if.org Git - php/commitdiff
IS_CONST can't be a reference
authorDmitry Stogov <dmitry@zend.com>
Mon, 7 Apr 2014 20:52:07 +0000 (00:52 +0400)
committerDmitry Stogov <dmitry@zend.com>
Mon, 7 Apr 2014 20:52:07 +0000 (00:52 +0400)
Zend/zend_execute.c

index 07724146164af06e7e922896f2f737f061d779ad..6231473cf33b4a666795aa90e3290dd07653233e 100644 (file)
@@ -691,7 +691,6 @@ static inline void zend_assign_to_object(zval *retval, zval *object_ptr, zval *p
                ZVAL_COPY_VALUE(&tmp, value);
                value = &tmp;
        } else if (value_type == IS_CONST) {
-               ZVAL_DEREF(value);
                ZVAL_DUP(&tmp, value);
        } else if (Z_REFCOUNTED_P(value)) {
                Z_ADDREF_P(value);