This is a possible fix for #28167

Anyone care to have a look ?

--
Ard



Index: zend_builtin_functions.c
===================================================================
RCS file: /repository/ZendEngine2/zend_builtin_functions.c,v
retrieving revision 1.237
diff -u -r1.237 zend_builtin_functions.c
--- zend_builtin_functions.c    28 May 2004 08:08:56 -0000      1.237
+++ zend_builtin_functions.c    21 Jun 2004 12:02:55 -0000
@@ -1628,7 +1628,8 @@
                if (function_name) {
                        add_assoc_string_ex(stack_frame, "function", 
sizeof("function"), function_name, 1);
 
-                       if (ptr->object) {
+                       if (ptr->object && !strcmp(Z_OBJCE(*ptr->object)->name, 
+                                       
ptr->function_state.function->common.scope->name)) {
                                class_name = Z_OBJCE(*ptr->object)->name;
                                call_type = "->";
                        } else if (ptr->function_state.function->common.scope) {



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to