From 4506d4ea241600e676d16538dc54e39ff38671e9 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 31 Aug 2003 15:47:48 +0000 Subject: Don't repeat first const count(consts) time --- ext/reflection/php_reflection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/reflection/php_reflection.c') diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 42747800a0..3629b582ab 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -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, -- cgit v1.2.1