Don't repeat first const count(consts) time

This commit is contained in:
Marcus Boerger 2003-08-31 15:47:48 +00:00
parent 660c14e74a
commit 4506d4ea24
2 changed files with 2 additions and 2 deletions

View 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,

View 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,