cvs: ZendEngine2 / zend_compile.c

From: Date: Sat, 06 Dec 2003 19:02:12 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2084@lists.php.net to get a copy of this message
helly Sat Dec 6 14:02:12 2003 EDT Modified files: /ZendEngine2 zend_compile.c Log: This test is against interfaces not abstract classes. Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.500 ZendEngine2/zend_compile.c:1.501 --- ZendEngine2/zend_compile.c:1.500 Fri Dec 5 11:28:54 2003 +++ ZendEngine2/zend_compile.c Sat Dec 6 14:02:12 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.500 2003/12/05 16:28:54 andi Exp $ */ +/* $Id: zend_compile.c,v 1.501 2003/12/06 19:02:12 helly Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -1829,7 +1829,7 @@ static inline void do_implement_interface(zend_class_entry *ce, zend_class_entry *iface TSRMLS_DC) { - if (!(ce->ce_flags & ZEND_ACC_ABSTRACT) && iface->interface_gets_implemented && iface->interface_gets_implemented(iface, ce TSRMLS_CC) == FAILURE) { + if (!(ce->ce_flags & ZEND_ACC_INTERFACE) && iface->interface_gets_implemented && iface->interface_gets_implemented(iface, ce TSRMLS_CC) == FAILURE) { zend_error(E_CORE_ERROR, "Class %s could not implement interface %s", ce->name, iface->name); } }

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