summaryrefslogtreecommitdiff
path: root/Zend/zend_execute_API.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-03-08 00:15:55 +0800
committerXinchen Hui <laruence@php.net>2015-03-08 00:21:02 +0800
commit95b4aa529336ede207dbd2d114521c60ec4f2ccb (patch)
tree9259774da4268a4dffc2efe040b72e0273045f66 /Zend/zend_execute_API.c
parentafad979c60e4b54b65a6fd7345d476076a7a9a03 (diff)
downloadphp-git-95b4aa529336ede207dbd2d114521c60ec4f2ccb.tar.gz
Fixed zend_hash_append result duplicated key
actually, maybe we should precalculate before calling zend_hash_appen when we are not sure whether the hash is caclculated(prop_info->name). but it looks a little ugly.. (also for zend_string_copy)
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r--Zend/zend_execute_API.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c
index 6dda9effa0..7cee3ba73d 100644
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@ -1473,7 +1473,6 @@ ZEND_API zend_array *zend_rebuild_symbol_table(void) /* {{{ */
/*printf("Cache miss! Initialized %x\n", EG(active_symbol_table));*/
}
for (i = 0; i < ex->func->op_array.last_var; i++) {
- zend_string_addref(ex->func->op_array.vars[i]);
_zend_hash_append_ind(symbol_table, ex->func->op_array.vars[i],
ZEND_CALL_VAR_NUM(ex, i));
}