diff options
author | Andi Gutmans <andi@php.net> | 2004-03-14 17:16:31 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2004-03-14 17:16:31 +0000 |
commit | 47cb3323a88a3ddda787906cc03465c145da1f63 (patch) | |
tree | f41be8f8c211d2e12af123c664fb46e5b16a6aff | |
parent | f11c819ddbe58baae62ef4715032eddd1d0f7ec1 (diff) | |
download | php-git-47cb3323a88a3ddda787906cc03465c145da1f63.tar.gz |
- Fixing bug #27123
-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); |