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 {
--
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|