com php-src: use nice way to achieve the property name length: ext/reflection/php_reflection.c
| From: | Anatol Belski | Date: | Sun, 14 Sep 2014 13:09:54 +0000 |
| Subject: | com php-src: use nice way to achieve the property name length: ext/reflection/php_reflection.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81597@lists.php.net to get a copy of this message | ||
Commit: 734d0b6bfdddfcedf3958eb92912c4709c4957fd
Author: Anatol Belski <ab@php.net> Sun, 14 Sep 2014 15:09:54 +0200
Parents: 454548e44032d40ba49e2041c552bedbff49a468
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=734d0b6bfdddfcedf3958eb92912c4709c4957fd
Log:
use nice way to achieve the property name length
Changed paths:
M ext/reflection/php_reflection.c
Diff:
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 9274ed5..6888a6c 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 */