From c7446bbd3908f7e12f08e21de084b20dea0e64e1 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 19 Sep 2014 19:57:36 +0200 Subject: [PATCH] Remove superfluous Z_REFCOUNTED_P check The string is never interned and IS_CONSTANT_EX is always refcounted. --- Zend/zend_compile.c | 3 --- 1 file changed, 3 deletions(-) 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); -- 2.50.1