For Programmers: Free Programming Magazines  


Home > Archive > PHP Zend Engine > November 2005 > cvs: ZendEngine2(PHP_5_1) / zend_compile.c









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: ZendEngine2(PHP_5_1) / zend_compile.c
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);
}

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com