summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-09-14 15:09:54 +0200
committerAnatol Belski <ab@php.net>2014-09-14 15:09:54 +0200
commit734d0b6bfdddfcedf3958eb92912c4709c4957fd (patch)
treea2bcceb6371c7367f5058f28cafdd7eb578ec324
parent454548e44032d40ba49e2041c552bedbff49a468 (diff)
downloadphp-git-734d0b6bfdddfcedf3958eb92912c4709c4957fd.tar.gz
use nice way to achieve the property name length
-rw-r--r--ext/reflection/php_reflection.c4
1 files changed, 1 insertions, 3 deletions
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 */