From a7e14749e7d0cf9ac23c6f25c18e78c1a1b0e377 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Sun, 12 Jan 2003 14:43:04 +0000 Subject: [PATCH] Disable ZE2-incompatible parts # This should be rewritten for ZE2 anyway... --- ext/standard/aggregation.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/standard/aggregation.c b/ext/standard/aggregation.c index 77ba6a26d8..0173ae14e7 100644 --- a/ext/standard/aggregation.c +++ b/ext/standard/aggregation.c @@ -409,7 +409,9 @@ static void aggregate(INTERNAL_FUNCTION_PARAMETERS, int aggr_what, int aggr_type * time. */ /* OBJECT FIXME!! won't work with non-standard objects */ +#ifndef ZEND_ENGINE_2 (Z_OBJ_P(obj))->ce = new_ce; +#endif aggr_info_new.new_ce = new_ce; MAKE_STD_ZVAL(aggr_info_new.aggr_members); array_init(aggr_info_new.aggr_members); @@ -630,7 +632,9 @@ PHP_FUNCTION(deaggregate) } /* OBJECT FIXME!! won't work with non-standard objects */ +#ifndef ZEND_ENGINE_2 (Z_OBJ_P(obj))->ce = orig_ce; +#endif zend_hash_index_del(BG(aggregation_table), (long)obj); } } -- 2.50.1