From: Anatol Belski Date: Sun, 14 Sep 2014 13:09:54 +0000 (+0200) Subject: use nice way to achieve the property name length X-Git-Tag: PRE_NATIVE_TLS_MERGE~158^2~85^2~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=734d0b6bfdddfcedf3958eb92912c4709c4957fd;p=php use nice way to achieve the property name length --- diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 9274ed5fe5..6888a6c5d9 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -1300,9 +1300,7 @@ static void reflection_property_factory(zend_class_entry *ce, zend_property_info const char *class_name, *prop_name; int prop_name_len; - zend_unmangle_property_name(prop->name->val, prop->name->len, &class_name, &prop_name); - - prop_name_len = (int)strlen(prop_name); + zend_unmangle_property_name_ex(prop->name->val, prop->name->len, &class_name, &prop_name, &prop_name_len); if (!(prop->flags & ZEND_ACC_PRIVATE)) { /* we have to search the class hierarchy for this (implicit) public or protected property */