From: Pierre Joye Date: Sat, 5 Sep 2009 19:00:05 +0000 (+0000) Subject: - don't hide early declaration X-Git-Tag: php-5.4.0alpha1~191^2~2690 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ec72d04158736a4a743f026b41bb825a687d8a0;p=php - don't hide early declaration --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index f19ec1b24e..4d3eaadcba 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1320,13 +1320,13 @@ ZEND_API void zend_update_class_constants(zend_class_entry *class_type TSRMLS_DC Z_SET_ISREF_PP(q); zend_u_hash_add(CE_STATIC_MEMBERS(class_type), utype, str_index, str_length, (void**)q, sizeof(zval*), NULL); } else { - zval *q; + zval *r; - ALLOC_ZVAL(q); - *q = **p; - INIT_PZVAL(q); - zval_copy_ctor(q); - zend_u_hash_add(CE_STATIC_MEMBERS(class_type), utype, str_index, str_length, (void**)&q, sizeof(zval*), NULL); + ALLOC_ZVAL(r); + *r = **p; + INIT_PZVAL(r); + zval_copy_ctor(r); + zend_u_hash_add(CE_STATIC_MEMBERS(class_type), utype, str_index, str_length, (void**)&r, sizeof(zval*), NULL); } zend_hash_move_forward_ex(&class_type->default_static_members, &pos); }