]> granicus.if.org Git - php/commitdiff
Remove superfluous Z_REFCOUNTED_P check
authorNikita Popov <nikic@php.net>
Fri, 19 Sep 2014 17:57:36 +0000 (19:57 +0200)
committerNikita Popov <nikic@php.net>
Fri, 19 Sep 2014 21:39:06 +0000 (23:39 +0200)
The string is never interned and IS_CONSTANT_EX is always refcounted.

Zend/zend_compile.c

index 9cb6f0609e7daefcb9cb39c95ae0c4d8cf357513..73bc44acd731792a91f721f887c51eb1c78c15ed 100644 (file)
@@ -5872,9 +5872,6 @@ void zend_compile_const_expr_class_const(zend_ast **ast_ptr TSRMLS_DC) /* {{{ */
                class_name->val, class_name->len, "::", 2, const_name->val, const_name->len);
 
        Z_TYPE_INFO(result) = IS_CONSTANT_EX;
-       if (!Z_REFCOUNTED(result)) {
-               Z_TYPE_FLAGS(result) &= ~ (IS_TYPE_REFCOUNTED | IS_TYPE_COPYABLE);
-       }
        Z_CONST_FLAGS(result) = fetch_type;
 
        zend_ast_destroy(ast);