From: Nikita Popov Date: Fri, 19 Sep 2014 17:57:36 +0000 (+0200) Subject: Remove superfluous Z_REFCOUNTED_P check X-Git-Tag: POST_NATIVE_TLS_MERGE^2~178 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7446bbd3908f7e12f08e21de084b20dea0e64e1;p=php Remove superfluous Z_REFCOUNTED_P check The string is never interned and IS_CONSTANT_EX is always refcounted. --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 9cb6f0609e..73bc44acd7 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -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);