cvs: ZendEngine2 / zend_compile.c /tests errmsg_038.phpt
| From: | Antony Dovgal | Date: | Mon, 12 Nov 2007 16:55:28 +0000 |
| Subject: | cvs: ZendEngine2 / zend_compile.c /tests errmsg_038.phpt | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-6156@lists.php.net to get a copy of this message | ||
tony2001 Mon Nov 12 16:55:28 2007 UTC
Modified files:
/ZendEngine2 zend_compile.c
/ZendEngine2/tests errmsg_038.phpt
Log:
fix error message (reported by Felipe Nascimento)
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_compile.c?r1=1.781&r2=1.782&diff_format=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.781 ZendEngine2/zend_compile.c:1.782
--- ZendEngine2/zend_compile.c:1.781 Mon Nov 12 15:52:11 2007
+++ ZendEngine2/zend_compile.c Mon Nov 12 16:55:28 2007
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_compile.c,v 1.781 2007/11/12 15:52:11 dmitry Exp $ */
+/* $Id: zend_compile.c,v 1.782 2007/11/12 16:55:28 tony2001 Exp $ */
#include <zend_language_parser.h>
#include "zend.h"
@@ -3537,7 +3537,7 @@
}
if (access_type & ZEND_ACC_FINAL) {
- zend_error(E_COMPILE_ERROR, "Cannot declare property %v::$%R final, the final modifier is
allowed only for methods",
+ zend_error(E_COMPILE_ERROR, "Cannot declare property %v::$%R final, the final modifier is
allowed only for methods and classes",
CG(active_class_entry)->name, Z_TYPE(var_name->u.constant),
Z_UNIVAL(var_name->u.constant));
}
http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/errmsg_038.phpt?r1=1.1&r2=1.2&diff_format=u
Index: ZendEngine2/tests/errmsg_038.phpt
diff -u ZendEngine2/tests/errmsg_038.phpt:1.1 ZendEngine2/tests/errmsg_038.phpt:1.2
--- ZendEngine2/tests/errmsg_038.phpt:1.1 Fri Feb 2 12:53:54 2007
+++ ZendEngine2/tests/errmsg_038.phpt Mon Nov 12 16:55:28 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