Commit message

From: Date: Wed, 13 Oct 2004 01:06:37 +0000
Subject: Commit message
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3096@lists.php.net to get a copy of this message
For the protocol :) 18:03 cuperlinux /home/andi/php5/Zend> cvs commit cvs commit: Examining . cvs commit: Examining RFCs cvs commit: Examining tests - Don't allow access modifiers in interfaces. Explicitly stating public - should also be disallowed but we don't have a way to detect it today. CVS: ---------------------------------------------------------------------- CVS: Enter Log. Lines beginning with `CVS:' are removed automatically CVS: CVS: Committing in . CVS: CVS: Modified Files:
CVS:    zend_compile.c
CVS: ---------------------------------------------------------------------- cvs diff: Diffing . Index: zend_compile.c =================================================================== RCS file: /repository/ZendEngine2/zend_compile.c,v retrieving revision 1.596 diff -u -r1.596 zend_compile.c
--- zend_compile.c      8 Oct 2004 22:17:32 -0000       1.596
+++ zend_compile.c      13 Oct 2004 01:03:34 -0000
@@ -1013,8 +1013,8 @@
        if (is_method) {
                if (CG(active_class_entry)->ce_flags & ZEND_ACC_INTERFACE) {
-                       if (!(fn_flags_znode->u.constant.value.lval & ZEND_ACC_PUBLIC)) {
-                               zend_error(E_COMPILE_ERROR, "Access type for interface method %s::%s() must be omitted or declared public", CG(active_class_entry)->name, function_name->u.constant.value.str.val);
+                       if (!(fn_flags_znode->u.constant.value.lval == ZEND_ACC_PUBLIC)) {
+                               zend_error(E_COMPILE_ERROR, "Access type for interface method %s::%s() must be omitted", CG(active_class_entry)->name, function_name->u.constant.value.str.val);
                        }
                        fn_flags_znode->u.constant.value.lval |= ZEND_ACC_ABSTRACT; /* propagates to the rest of the parser */
                }
cvs diff: Diffing RFCs cvs diff: Diffing tests

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