cvs: ZendEngine2(PHP_5_2) / zend_compile.c /tests errmsg_038.phpt

From: Date: Mon, 12 Nov 2007 16:56:40 +0000
Subject: cvs: ZendEngine2(PHP_5_2) / zend_compile.c /tests errmsg_038.phpt
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-6158@lists.php.net to get a copy of this message
tony2001 Mon Nov 12 16:56:40 2007 UTC Modified files: (Branch: PHP_5_2) /ZendEngine2 zend_compile.c /ZendEngine2/tests errmsg_038.phpt Log: MFH: fix error message (reported by Felipe Nascimento) http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_compile.c?r1=1.647.2.27.2.41&r2=1.647.2.27.2.42&diff_format=u Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.647.2.27.2.41 ZendEngine2/zend_compile.c:1.647.2.27.2.42 --- ZendEngine2/zend_compile.c:1.647.2.27.2.41 Thu Sep 20 14:11:31 2007 +++ ZendEngine2/zend_compile.c Mon Nov 12 16:56:39 2007 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.647.2.27.2.41 2007/09/20 14:11:31 jani Exp $ */ +/* $Id: zend_compile.c,v 1.647.2.27.2.42 2007/11/12 16:56:39 tony2001 Exp $ */ #include <zend_language_parser.h> #include "zend.h" @@ -3005,7 +3005,7 @@ } if (access_type & ZEND_ACC_FINAL) { - zend_error(E_COMPILE_ERROR, "Cannot declare property %s::$%s final, the final modifier is allowed only for methods", + zend_error(E_COMPILE_ERROR, "Cannot declare property %s::$%s final, the final modifier is allowed only for methods and classes", CG(active_class_entry)->name, var_name->u.constant.value.str.val); } http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/errmsg_038.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u Index: ZendEngine2/tests/errmsg_038.phpt diff -u ZendEngine2/tests/errmsg_038.phpt:1.1.2.2 ZendEngine2/tests/errmsg_038.phpt:1.1.2.3 --- ZendEngine2/tests/errmsg_038.phpt:1.1.2.2 Wed Feb 7 11:10:32 2007 +++ ZendEngine2/tests/errmsg_038.phpt Mon Nov 12 16:56:39 2007 @@ -10,4 +10,4 @@ echo "Done\n"; ?> --EXPECTF-- -Fatal error: Cannot declare property test::$var final, the final modifier is allowed only for methods in %s on line %d +Fatal error: Cannot declare property test::$var final, the final modifier is allowed only for methods and classes in %s on line %d

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