]> granicus.if.org Git - php/commitdiff
- don't hide early declaration
authorPierre Joye <pajoye@php.net>
Sat, 5 Sep 2009 19:00:05 +0000 (19:00 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 5 Sep 2009 19:00:05 +0000 (19:00 +0000)
Zend/zend_API.c

index f19ec1b24ef659bedd01de303e499153f71b9f02..4d3eaadcba6f9dd57388b450f31b1e4bd5d23f65 100644 (file)
@@ -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);
                        }