diff options
-rw-r--r-- | Zend/zend_builtin_functions.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 54691ce99a..fbb6f46eac 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -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); |