cvs: ZendEngine2 / zend_compile.c
| From: | Johannes Schl�ter | Date: | Sat, 27 May 2006 17:58:50 +0000 |
| Subject: | cvs: ZendEngine2 / zend_compile.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4931@lists.php.net to get a copy of this message | ||
johannes Sat May 27 17:58:50 2006 UTC
Modified files:
/ZendEngine2 zend_compile.c
Log:
- Fix #37614 (Class name lowercased in error message)
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_compile.c?r1=1.706&r2=1.707&diff_format=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.706 ZendEngine2/zend_compile.c:1.707
--- ZendEngine2/zend_compile.c:1.706 Wed May 10 21:04:40 2006
+++ ZendEngine2/zend_compile.c Sat May 27 17:58:50 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_compile.c,v 1.706 2006/05/10 21:04:40 helly Exp $ */
+/* $Id: zend_compile.c,v 1.707 2006/05/27 17:58:50 johannes Exp $ */
#include <zend_language_parser.h>
#include "zend.h"
@@ -2445,7 +2445,7 @@
* so we shut up about it. This allows the if (!defined('FOO')) { return; }
* approach to work.
*/
- zend_error(E_COMPILE_ERROR, "Cannot redeclare class %R",
Z_TYPE(opline->op2.u.constant), Z_UNIVAL(opline->op2.u.constant));
+ zend_error(E_COMPILE_ERROR, "Cannot redeclare class %v", ce->name);
}
return NULL;
} else {
@@ -2471,7 +2471,7 @@
* so we shut up about it. This allows the if (!defined('FOO')) { return; }
* approach to work.
*/
- zend_error(E_COMPILE_ERROR, "Cannot redeclare class %R",
Z_TYPE(opline->op2.u.constant), Z_UNIVAL(opline->op2.u.constant));
+ zend_error(E_COMPILE_ERROR, "Cannot redeclare class %v", ce->name);
}
return NULL;
} else {
@@ -2488,7 +2488,7 @@
/* Register the derived class */
if (zend_u_hash_add(class_table, Z_TYPE(opline->op2.u.constant),
Z_UNIVAL(opline->op2.u.constant), Z_UNILEN(opline->op2.u.constant)+1, pce,
sizeof(zend_class_entry *), NULL)==FAILURE) {
- zend_error(E_COMPILE_ERROR, "Cannot redeclare class %R",
Z_TYPE(opline->op2.u.constant), Z_UNIVAL(opline->op2.u.constant));
+ zend_error(E_COMPILE_ERROR, "Cannot redeclare class %v", ce->name);
ce->refcount--;
zend_hash_destroy(&ce->function_table);
zend_hash_destroy(&ce->default_properties);