summaryrefslogtreecommitdiff
path: root/ext/reflection
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-04-01 16:31:03 +0400
committerDmitry Stogov <dmitry@zend.com>2014-04-01 16:31:03 +0400
commita25a1ba0ef263e9e1d65b8eaebd3e764878c55c7 (patch)
tree978ef72e0c909146687f463f5066e3d9672eb5ce /ext/reflection
parent7eff369ba94f244604669f4b0e9737dc06265f43 (diff)
downloadphp-git-a25a1ba0ef263e9e1d65b8eaebd3e764878c55c7.tar.gz
STR_DUP() doesn't duplicate interned strings anymore. In case new string is required STR_INIT() or STR_ALLOC() should be used.
Diffstat (limited to 'ext/reflection')
-rw-r--r--ext/reflection/php_reflection.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 20d3eb0e73..869a68d45c 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -575,14 +575,13 @@ static void _class_string(string *str, zend_class_entry *ce, zval *obj, char *in
zend_string *prop_name;
ulong index;
- if (zend_hash_get_current_key_ex(properties, &prop_name, &index, 1, &pos) == HASH_KEY_IS_STRING) {
+ if (zend_hash_get_current_key_ex(properties, &prop_name, &index, 0, &pos) == HASH_KEY_IS_STRING) {
if (prop_name->len && prop_name->val[0]) { /* skip all private and protected properties */
if (!zend_hash_exists(&ce->properties_info, prop_name)) {
count++;
_property_string(&dyn, NULL, prop_name->val, sub_indent.buf->val TSRMLS_CC);
}
}
- efree(prop_name);
}
zend_hash_move_forward_ex(properties, &pos);
}