cvs: ZendEngine2 / zend_compile.c

From: Date: Wed, 28 Jan 2004 10:52:27 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2290@lists.php.net to get a copy of this message
zeev Wed Jan 28 05:52:27 2004 EDT Modified files: /ZendEngine2 zend_compile.c Log: Fixlets http://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?r1=1.520&r2=1.521&ty=u Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.520 ZendEngine2/zend_compile.c:1.521 --- ZendEngine2/zend_compile.c:1.520 Wed Jan 28 05:25:45 2004 +++ ZendEngine2/zend_compile.c Wed Jan 28 05:52:27 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.520 2004/01/28 10:25:45 zeev Exp $ */ +/* $Id: zend_compile.c,v 1.521 2004/01/28 10:52:27 zeev Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -1733,12 +1733,13 @@ return 1; /* method doesn't exist in child, copy from parent */ } - if (parent->common.fn_flags & ZEND_ACC_ABSTRACT + if (parent->common.scope != child->common.scope + && parent->common.fn_flags & ZEND_ACC_ABSTRACT && 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, child->common.function_name, - child->common.prototype->common.scope->name); + child->common.scope->name); } if (parent_flags & ZEND_ACC_FINAL) { @@ -2436,23 +2437,6 @@ } -#if 0 -/* This is a part of an incomplete patch, coming soon */ -ZEND_API void zend_do_extends(znode *result, znode *class_token, zend_bool is_first_parent TSRMLS_DC) -{ - zend_bool is_class = CG(active_class_entry)->ce_flags & ZEND_ACC_INTERFACE; - - if (is_class) { - if (!is_first_parent) { - zend_error(E_COMPILE_ERROR, "Classes may extend only one parent"); - } else { - *result = *class_token; - } - } else { /* interface */ - } -} -#endif - void zend_do_implements_interface(znode *interface_znode TSRMLS_DC) { zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC);

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