*/
if (zend_hash_add(&ce->function_table, func_name, func_name_len,
(void*)function, sizeof(zend_function), NULL) == SUCCESS) {
-
+ function_add_ref(function);
add_next_index_stringl(aggr_methods, func_name, func_name_len-1, 1);
}
* and stuff this where it belongs so we don't have to work so hard next
* time.
*/
- /* 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);
new_ce = aggr_info->new_ce;
}
+ /* OBJECT FIXME!! won't work with non-standard objects */
+ (Z_OBJ_P(obj))->ce = new_ce;
+
/*
* This should be easy to understand. If not, ask Rasmus about it at his
* next tutorial.