summaryrefslogtreecommitdiff
path: root/ext/standard/aggregation.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2002-04-30 11:29:28 +0000
committerStanislav Malyshev <stas@php.net>2002-04-30 11:29:28 +0000
commit3dd6217c0b9e5973c750d0b14931b30cbc8009e1 (patch)
tree77dcdf5f675879f77893b922108eb68225a7108e /ext/standard/aggregation.c
parent3b1ae7c62a57cea48d2acb00489574c92e3dbbc0 (diff)
downloadphp-git-3dd6217c0b9e5973c750d0b14931b30cbc8009e1.tar.gz
ZE2 compatibility fixes
Diffstat (limited to 'ext/standard/aggregation.c')
-rw-r--r--ext/standard/aggregation.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/standard/aggregation.c b/ext/standard/aggregation.c
index 0bed0a50c8..b45d2b8d9b 100644
--- a/ext/standard/aggregation.c
+++ b/ext/standard/aggregation.c
@@ -408,7 +408,8 @@ static void aggregate(INTERNAL_FUNCTION_PARAMETERS, int aggr_what, int aggr_type
* and stuff this where it belongs so we don't have to work so hard next
* time.
*/
- Z_OBJCE_P(obj) = new_ce;
+ /* OBJECT FIXME!! won't work with non-standard objects */
+ Z_OBJ_P(obj)->ce = new_ce;
aggr_info_new.new_ce = new_ce;
MAKE_STD_ZVAL(aggr_info_new.aggr_members);
array_init(aggr_info_new.aggr_members);
@@ -628,7 +629,8 @@ PHP_FUNCTION(deaggregate)
}
}
- Z_OBJCE_P(obj) = orig_ce;
+ /* OBJECT FIXME!! won't work with non-standard objects */
+ Z_OBJ_P(obj)->ce = orig_ce;
zend_hash_index_del(BG(aggregation_table), (long)obj);
}
}