| Ilia Alshanetsky 2005-11-16, 6:56 pm |
| iliaa Wed Nov 16 10:10:57 2005 EDT
Modified files: (Branch: PHP_5_1)
/ZendEngine2 zend_compile.c
Log:
By popular demand the {} message is now an E_STRICT.
http://cvs.php.net/diff.php/ZendEng...1.647.2.14&ty=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.647.2.13 ZendEngine2/zend_compile.c:1.647.2.14
--- ZendEngine2/zend_compile.c:1.647.2.13 Wed Nov 16 09:55:21 2005
+++ ZendEngine2/zend_compile.c Wed Nov 16 10:10:56 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_compile.c,v 1.647.2.13 2005/11/16 14:55:21 iliaa Exp $ */
+/* $Id: zend_compile.c,v 1.647.2.14 2005/11/16 15:10:56 iliaa Exp $ */
#include <zend_language_parser.h>
#include "zend.h"
@@ -465,7 +465,7 @@
void fetch_string_offset(znode *result, znode *parent, znode *offset TSRMLS_DC)
{
- zend_error(E_NOTICE, "Usage of {} to access string offsets is deprecated and will be removed in PHP 6");
+ zend_error(E_STRICT, "Usage of {} to access string offsets is deprecated and will be removed in PHP 6");
fetch_array_dim(result, parent, offset TSRMLS_CC);
}
|