summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2014-04-14 19:27:55 +0800
committerXinchen Hui <laruence@gmail.com>2014-04-14 19:27:55 +0800
commitc7513f58d23b0e1d2ff6e097c8b2df6098c5213f (patch)
tree9a426bf79cb1639cf7f9596340bba86ae071091d /ext/reflection/php_reflection.c
parenta975c7e0fe95a94c119eb1c8e519b2357aa50dcc (diff)
parent703c1bc570d1fc9a379fa38b298d6759a4b1a687 (diff)
downloadphp-git-c7513f58d23b0e1d2ff6e097c8b2df6098c5213f.tar.gz
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 1ef849f92a..224bec75ba 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -4010,7 +4010,7 @@ ZEND_METHOD(reflection_class, getConstants)
GET_REFLECTION_OBJECT_PTR(ce);
array_init(return_value);
zend_hash_apply_with_argument(&ce->constants_table, (apply_func_arg_t)zval_update_constant_inline_change, ce TSRMLS_CC);
- zend_hash_copy(Z_ARRVAL_P(return_value), &ce->constants_table, zval_add_ref);
+ zend_hash_copy(Z_ARRVAL_P(return_value), &ce->constants_table, zval_add_ref_unref);
}
/* }}} */