From 47cb3323a88a3ddda787906cc03465c145da1f63 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Sun, 14 Mar 2004 17:16:31 +0000 Subject: [PATCH] - Fixing bug #27123 --- Zend/zend_builtin_functions.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 54691ce99a7..fbb6f46eacc 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);