]> granicus.if.org Git - php/commitdiff
- Fix issue with name mangling
authorMarcus Boerger <helly@php.net>
Tue, 31 Oct 2006 19:21:03 +0000 (19:21 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 31 Oct 2006 19:21:03 +0000 (19:21 +0000)
Zend/zend.c

index 704eab89cda95671c6adce3c937931c42b39808c..f5c66a18da8a00eb30c499e583dc7b5127145087 100644 (file)
@@ -241,9 +241,9 @@ str_type:
                                if (is_object) {
                                        zstr prop_name, class_name;
 
-                                       zend_u_unmangle_property_name(ztype, string_key, str_len - 1, &class_name, &prop_name);
+                                       int mangled = zend_u_unmangle_property_name(ztype, string_key, str_len - 1, &class_name, &prop_name);
 
-                                       if (class_name.v) {
+                                       if (class_name.v && mangled == SUCCESS) {
                                                if (class_name.s[0]=='*') {
                                                        zend_printf("%R:protected", ztype, prop_name);
                                                } else {