summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2004-01-03 13:51:02 +0000
committerDerick Rethans <derick@php.net>2004-01-03 13:51:02 +0000
commit6923a16c2651b09f70ab0670e99d7eadc319f131 (patch)
treebbe5c7ba6bb728611cc26cbef7eeb348bdddabec /ext/reflection/php_reflection.c
parent22843351bfc356ab2f845ba9b4b7035a2b2a5c0d (diff)
downloadphp-git-6923a16c2651b09f70ab0670e99d7eadc319f131.tar.gz
- Fixed var_export() to show public, protected and private modifiers properly.
- Exported (un)mangle_property_name.
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index a62b49bd00..77fe2f9aec 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -616,7 +616,7 @@ static void _property_string(string *str, zend_property_info *prop, char *prop_n
string_printf(str, "static ");
}
- unmangle_property_name(prop->name, &class_name, &prop_name);
+ zend_unmangle_property_name(prop->name, &class_name, &prop_name);
string_printf(str, "$%s", prop_name);
}
@@ -758,7 +758,7 @@ static void reflection_property_factory(zend_class_entry *ce, zend_property_info
property_reference *reference;
char *class_name, *prop_name;
- unmangle_property_name(prop->name, &class_name, &prop_name);
+ zend_unmangle_property_name(prop->name, &class_name, &prop_name);
if (!(prop->flags & ZEND_ACC_PRIVATE)) {
/* we have to seach the class hierarchy for this (implicit) public or protected property */
@@ -1866,7 +1866,7 @@ ZEND_METHOD(reflection_class, getDefaultProperties)
zend_hash_get_current_key_ex(&ce->default_properties, &key, &key_len, &num_index, 0, &pos);
zend_hash_move_forward_ex(&ce->default_properties, &pos);
- unmangle_property_name(key, &class_name, &prop_name);
+ zend_unmangle_property_name(key, &class_name, &prop_name);
if (class_name && class_name[0] != '*' && strcmp(class_name, ce->name)) {
/* filter privates from base classes */
continue;