]> granicus.if.org Git - php/commitdiff
Don't repeat first const count(consts) time
authorMarcus Boerger <helly@php.net>
Sun, 31 Aug 2003 15:47:48 +0000 (15:47 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 31 Aug 2003 15:47:48 +0000 (15:47 +0000)
Zend/zend_reflection_api.c
ext/reflection/php_reflection.c

index 42747800a0c14e44a62407c1cce5d0fdd0b4d375..3629b582abe30dab7c0c6b1a2758b5fa52b7674e 100644 (file)
@@ -264,7 +264,7 @@ static void _class_string(string *str, zend_class_entry *ce, char *indent TSRMLS
                        zend_hash_internal_pointer_reset_ex(&ce->constants_table, &pos);
 
                        while (zend_hash_get_current_data_ex(&ce->constants_table, (void **) &value, &pos) == SUCCESS) {
-                               zend_hash_get_current_key_ex(&ce->constants_table, &key, &key_len, &num_index, 0, NULL);
+                               zend_hash_get_current_key_ex(&ce->constants_table, &key, &key_len, &num_index, 0, &pos);
                                
                                string_printf(str, "%s    Constant [ %s %s ] { }\n",
                                                   indent,
index 42747800a0c14e44a62407c1cce5d0fdd0b4d375..3629b582abe30dab7c0c6b1a2758b5fa52b7674e 100644 (file)
@@ -264,7 +264,7 @@ static void _class_string(string *str, zend_class_entry *ce, char *indent TSRMLS
                        zend_hash_internal_pointer_reset_ex(&ce->constants_table, &pos);
 
                        while (zend_hash_get_current_data_ex(&ce->constants_table, (void **) &value, &pos) == SUCCESS) {
-                               zend_hash_get_current_key_ex(&ce->constants_table, &key, &key_len, &num_index, 0, NULL);
+                               zend_hash_get_current_key_ex(&ce->constants_table, &key, &key_len, &num_index, 0, &pos);
                                
                                string_printf(str, "%s    Constant [ %s %s ] { }\n",
                                                   indent,