cvs: ZendEngine2 / zend_compile.c

From: Date: Wed, 28 Jan 2004 22:27:39 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2294@lists.php.net to get a copy of this message
zeev Wed Jan 28 17:27:39 2004 EDT Modified files: /ZendEngine2 zend_compile.c Log: Tweak checks to detect some additional cases. Reorder checks to make more sense. http://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?r1=1.522&r2=1.523&ty=u Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.522 ZendEngine2/zend_compile.c:1.523 --- ZendEngine2/zend_compile.c:1.522 Wed Jan 28 06:53:52 2004 +++ ZendEngine2/zend_compile.c Wed Jan 28 17:27:39 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.522 2004/01/28 11:53:52 zeev Exp $ */ +/* $Id: zend_compile.c,v 1.523 2004/01/28 22:27:39 zeev Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -1733,8 +1733,8 @@ return 1; /* method doesn't exist in child, copy from parent */ } - if (parent->common.scope != child->common.scope - && parent->common.fn_flags & ZEND_ACC_ABSTRACT + if (parent->common.fn_flags & ZEND_ACC_ABSTRACT + && parent->common.scope != (child->common.prototype ? child->common.prototype->common.scope : child->common.scope) && child->common.fn_flags & (ZEND_ACC_ABSTRACT|ZEND_ACC_IMPLEMENTED_ABSTRACT)) { zend_error(E_COMPILE_ERROR, "Can't inherit abstract function %s::%s() (previously declared abstract in %s)", parent->common.scope->name,

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