mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Don't repeat first const count(consts) time
This commit is contained in:
parent
660c14e74a
commit
4506d4ea24
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user