mirror of
https://github.com/php/php-src.git
synced 2026-03-29 19:52:20 +02:00
- Fixing bug #27123
This commit is contained in:
@@ -707,6 +707,8 @@ ZEND_FUNCTION(get_object_vars)
|
||||
|
||||
while (zend_hash_get_current_data_ex(properties, (void **) &value, &pos) == SUCCESS) {
|
||||
if (zend_hash_get_current_key_ex(properties, &key, &key_len, &num_index, 0, &pos) == HASH_KEY_IS_STRING && key[0]) {
|
||||
/* Not separating references */
|
||||
(*value)->refcount++;
|
||||
add_assoc_zval_ex(return_value, key, key_len, *value);
|
||||
}
|
||||
zend_hash_move_forward_ex(properties, &pos);
|
||||
|
||||
Reference in New Issue
Block a user