]> granicus.if.org Git - php/commitdiff
ZE2 compatibility
authorStanislav Malyshev <stas@php.net>
Sun, 12 Jan 2003 18:42:16 +0000 (18:42 +0000)
committerStanislav Malyshev <stas@php.net>
Sun, 12 Jan 2003 18:42:16 +0000 (18:42 +0000)
ext/standard/aggregation.c

index 0173ae14e7b3c455d7f90b063112293dd2bd8fa5..5f47b96a32db8afcecaf1b2a5d643263d4ae2b3d 100644 (file)
@@ -399,10 +399,15 @@ static void aggregate(INTERNAL_FUNCTION_PARAMETERS, int aggr_what, int aggr_type
                new_ce->clone = Z_OBJCE_P(obj)->clone;
 #endif
                new_ce->builtin_functions = Z_OBJCE_P(obj)->builtin_functions;
+#ifndef ZEND_ENGINE_2
                new_ce->handle_function_call = Z_OBJCE_P(obj)->handle_function_call;
                new_ce->handle_property_get  = Z_OBJCE_P(obj)->handle_property_get;
                new_ce->handle_property_set  = Z_OBJCE_P(obj)->handle_property_set;
-
+#else
+               new_ce->__call = Z_OBJCE_P(obj)->__call;
+               new_ce->__get  = Z_OBJCE_P(obj)->__get;
+               new_ce->__set  = Z_OBJCE_P(obj)->__set;
+#endif
                /*
                 * Okay, that was kind of exhausting. Let's invoke programmer virtue #1
                 * and stuff this where it belongs so we don't have to work so hard next