Changeset 212
- Timestamp:
- 06/02/06 14:42:48 (3 years ago)
- Files:
-
- eaccelerator/trunk/ChangeLog (modified) (1 diff)
- eaccelerator/trunk/ea_restore.c (modified) (3 diffs)
- eaccelerator/trunk/eaccelerator.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/ChangeLog
r210 r212 1 2006-06-02 Hans Rakers <hans at parse dot nl> 2 * Removed two unused vars from the internal datastructures 3 * Fixed constructor inheritance. This fixes handling of implicit 4 constructors and solves ticket #89 5 1 6 2006-05-14 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 2 7 eaccelerator/trunk/ea_restore.c
r205 r212 726 726 #ifdef ZEND_ENGINE_2 727 727 to->parent = *parent_ptr; 728 to->constructor = to->parent->constructor;729 to->destructor = to->parent->destructor;730 to->clone = to->parent->clone;731 728 #endif 732 729 DBG(ea_debug_printf, (EA_DEBUG, "restore_class_parent: found parent %s..\n", to->parent->name)); … … 746 743 char *fname_lc = NULL; 747 744 zend_function *f = NULL; 748 zend_function *old_ctor = to->constructor;749 745 Bucket *p = to->function_table.pListHead; 750 746 … … 753 749 fname_len = strlen(f->common.function_name); 754 750 fname_lc = zend_str_tolower_dup(f->common.function_name, fname_len); 755 756 if (fname_len == cname_len && !memcmp(fname_lc, cname_lc, fname_len) && 757 to->constructor == old_ctor && f->common.scope != to->parent) { 751 752 if (fname_len == cname_len && !memcmp(fname_lc, cname_lc, fname_len) && f->common.scope != to->parent) { 758 753 to->constructor = f; 759 754 } else if (fname_lc[0] == '_' && fname_lc[1] == '_' && f->common.scope != to->parent) { eaccelerator/trunk/eaccelerator.h
r207 r212 195 195 #endif 196 196 char *function_name; 197 char *function_name_lc;198 197 #ifdef ZEND_ENGINE_2 199 198 char *scope_name; … … 225 224 char type; 226 225 char *name; 227 char *name_lc;228 226 zend_uint name_length; 229 227 char *parent;