Changeset 165

Show
Ignore:
Timestamp:
02/19/06 20:04:12 (3 years ago)
Author:
hrak
Message:

Fixed inheritance/prototype issue with abstract methods and classes during restore. zend_do_inheritance handles these properly now.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/ChangeLog

    r164 r165  
    22 
    33        * Restored PHP4 compatibility 
     4        * Fixed inheritance/prototype issue with abstract methods and classes during 
     5          restore. zend_do_inheritance handles these properly now. 
    46 
    572006-02-18  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
  • eaccelerator/trunk/ea_restore.c

    r162 r165  
    811811                                to->__call = f; 
    812812                } 
     813                if (to->parent) { 
     814                        /* clear the child's prototype and IMPLEMENTED_ABSTRACT flag, 
     815                           these are properly restored by zend_do_inheritance() (see do_inherit_method_check) */ 
     816                        f->common.prototype = NULL; 
     817                        f->common.fn_flags = f->common.fn_flags & (~ZEND_ACC_IMPLEMENTED_ABSTRACT); 
     818                } 
    813819                efree(fname_lc); 
    814820                p = p->pListNext;