Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c

From: Date: Sun, 23 Feb 2003 13:40:47 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-957@lists.php.net to get a copy of this message
At 13:51 23.02.2003, Zeev Suraski wrote:
zeev            Sun Feb 23 07:51:40 2003 EDT
Modified files:
    /ZendEngine2        zend_compile.c
Log: Fixed abstract handling in inheritence
Erm Zeev - that must break the build - you dropped the patch part for zend_hash.c/h function zend_hash_merge_ex. zend_hash_merge_ex uses copy_ctor_func_t and not copy_ctor_func_param_t. Obviously you must either modify zend_hash_merge_ex or implement another function ..ex2. Or implement it as ..ex2 and add a macro for compatibility. The function is used in zend_ts_hash.c function zend_ts_hash_merge which also uses copy_ctor_func_t. Also you must do something with the other usages of zend_hash_merge_ex (zend_compile.c 2 times in function zend_do_inheritance() and zend_ts_hash.c in function zend_ts_hash_merge_ex). I have made a new patch: http://marcus-boerger.de/php/ext/ze2/ze2-oo-20030223-2.diff.txt This new patch adds function zend_hash_merge_caller, implements zend_hash_merge_ex2 and makes function zend_hash_merge_ex a macro using _ex2 and _caller. But zend_ts_hash_merge_ex() is the only function which uses zend_hash_merge_ex() besides zend_compile.c. So i suggest changing _ex function to allways use copy_ctor_param_t is the better solution. regards marcus

« previous php.zend-engine.cvs (#957) next »