]> granicus.if.org Git - php/commitdiff
One function call is enough
authorMarcus Boerger <helly@php.net>
Mon, 12 May 2003 18:54:05 +0000 (18:54 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 12 May 2003 18:54:05 +0000 (18:54 +0000)
Zend/zend_execute_API.c

index 3eb953fd098d99623a2df2583a88ad9609de5ae6..a5082282ffb16dbfda2825b44817e63ea04601f5 100644 (file)
@@ -576,9 +576,9 @@ int call_user_function_ex(HashTable *function_table, zval **object_pp, zval *fun
                                return FAILURE;
                        }
 
-                       function_table = &Z_OBJCE_PP(object_pp)->function_table;
-                       EX(object) = *object_pp;
                        calling_scope = Z_OBJCE_PP(object_pp);
+                       function_table = &calling_scope->function_table;
+                       EX(object) =  *object_pp;
                } else if (Z_TYPE_PP(object_pp) == IS_STRING) {
                        zend_class_entry **ce;
                        char *lc_class;