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

From: Date: Mon, 12 Nov 2007 16:55:44 +0000
Subject: cvs: ZendEngine2(PHP_5_3) / zend_compile.c /tests errmsg_038.phpt
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-6157@lists.php.net to get a copy of this message
tony2001 Mon Nov 12 16:55:44 2007 UTC Modified files: (Branch: PHP_5_3) /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.2.18&r2=1.647.2.27.2.41.2.19&diff_format=u Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.647.2.27.2.41.2.18 ZendEngine2/zend_compile.c:1.647.2.27.2.41.2.19 --- ZendEngine2/zend_compile.c:1.647.2.27.2.41.2.18 Mon Nov 12 15:52:22 2007 +++ ZendEngine2/zend_compile.c Mon Nov 12 16:55:44 2007 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.647.2.27.2.41.2.18 2007/11/12 15:52:22 dmitry Exp $ */ +/* $Id: zend_compile.c,v 1.647.2.27.2.41.2.19 2007/11/12 16:55:44 tony2001 Exp $ */ #include <zend_language_parser.h> #include "zend.h" @@ -3239,7 +3239,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.2.2.1&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.2.2.1 --- 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:55:44 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 (#6157) next »