cvs: ZendEngine2 / zend_compile.c

From: Date: Tue, 02 Sep 2003 23:12:37 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1796@lists.php.net to get a copy of this message
helly Tue Sep 2 19:12:37 2003 EDT Modified files: /ZendEngine2 zend_compile.c Log: Fix error messages Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.471 ZendEngine2/zend_compile.c:1.472 --- ZendEngine2/zend_compile.c:1.471 Tue Sep 2 09:28:34 2003 +++ ZendEngine2/zend_compile.c Tue Sep 2 19:12:37 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.471 2003/09/02 13:28:34 helly Exp $ */ +/* $Id: zend_compile.c,v 1.472 2003/09/02 23:12:37 helly Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -2278,13 +2278,13 @@ if (ce->constructor) { ce->constructor->common.fn_flags |= ZEND_ACC_CTOR; if (ce->constructor->common.fn_flags & ZEND_ACC_STATIC) { - zend_error(E_COMPILE_ERROR, "Constructor %s::%s cannot be static", ce->name, ce->constructor->common.function_name); + zend_error(E_COMPILE_ERROR, "Constructor %s::%s() cannot be static", ce->name, ce->constructor->common.function_name); } } if (ce->destructor) { ce->destructor->common.fn_flags |= ZEND_ACC_DTOR; if (ce->destructor->common.fn_flags & ZEND_ACC_STATIC) { - zend_error(E_COMPILE_ERROR, "Destructor %s::%s cannot be static", ce->name, ce->destructor->common.function_name); + zend_error(E_COMPILE_ERROR, "Destructor %s::%s() cannot be static", ce->name, ce->destructor->common.function_name); } } @@ -2357,7 +2357,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", CG(active_class_entry)->name, var_name->u.constant.value.str.val); }

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