cvs: php4 /ext/standard aggregation.c

From: Date: Tue, 30 Apr 2002 11:29:28 +0000
Subject: cvs: php4 /ext/standard aggregation.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11555@lists.php.net to get a copy of this message
stas Tue Apr 30 07:29:28 2002 EDT Modified files: /php4/ext/standard aggregation.c Log: ZE2 compatibility fixes Index: php4/ext/standard/aggregation.c diff -u php4/ext/standard/aggregation.c:1.7 php4/ext/standard/aggregation.c:1.8 --- php4/ext/standard/aggregation.c:1.7 Thu Mar 21 10:28:46 2002 +++ php4/ext/standard/aggregation.c Tue Apr 30 07:29:28 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: aggregation.c,v 1.7 2002/03/21 15:28:46 andrei Exp $ */ +/* $Id: aggregation.c,v 1.8 2002/04/30 11:29:28 stas Exp $ */ #include "php.h" #include "basic_functions.h" @@ -408,7 +408,8 @@ * 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 @@ } } - 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); } }

« previous php.cvs (#11555) next »