cvs: ZendEngine2 / zend_API.c

From: Date: Sun, 04 Jun 2006 10:23:25 +0000
Subject: cvs: ZendEngine2 / zend_API.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4968@lists.php.net to get a copy of this message
helly Sun Jun 4 10:23:25 2006 UTC Modified files: /ZendEngine2 zend_API.c Log: - Fix function flag check http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_API.c?r1=1.368&r2=1.369&diff_format=u Index: ZendEngine2/zend_API.c diff -u ZendEngine2/zend_API.c:1.368 ZendEngine2/zend_API.c:1.369 --- ZendEngine2/zend_API.c:1.368 Sat May 27 19:40:06 2006 +++ ZendEngine2/zend_API.c Sun Jun 4 10:23:25 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_API.c,v 1.368 2006/05/27 19:40:06 helly Exp $ */ +/* $Id: zend_API.c,v 1.369 2006/06/04 10:23:25 helly Exp $ */ #include "zend.h" #include "zend_execute.h" @@ -2112,7 +2112,7 @@ scope->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS; } } - if (ptr->flags & ZEND_ACC_STATIC && (!scope || (scope->ce_flags & ZEND_ACC_INTERFACE))) { + if (ptr->flags & ZEND_ACC_STATIC && (!scope || !(scope->ce_flags & ZEND_ACC_INTERFACE))) { zend_error(error_type, "Static function %s%s%s() cannot be abstract", scope ? scope->name.s : "", scope ? "::" : "", ptr->fname); } } else {

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