From 608c3207a6dc97b1d0aacf7441a25ce3d62aad7b Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 20 Mar 2006 15:13:41 +0000 Subject: [PATCH] Removed unreachable code --- Zend/zend_compile.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index a967fe2f12..b4d4a03139 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -2940,13 +2940,7 @@ void zend_do_declare_class_constant(znode *var_name, znode *value TSRMLS_DC) } ALLOC_ZVAL(property); - - if (value) { - *property = value->u.constant; - } else { - INIT_PZVAL(property); - property->type = IS_NULL; - } + *property = value->u.constant; if (zend_hash_add(&CG(active_class_entry)->constants_table, var_name->u.constant.value.str.val, var_name->u.constant.value.str.len+1, &property, sizeof(zval *), NULL)==FAILURE) { FREE_ZVAL(property); -- 2.50.1