cvs: ZendEngine2(PHP_5_1) / zend_compile.c

From: Date: Wed, 16 Nov 2005 14:55:24 +0000
Subject: cvs: ZendEngine2(PHP_5_1) / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4347@lists.php.net to get a copy of this message
iliaa Wed Nov 16 09:55:24 2005 EDT Modified files: (Branch: PHP_5_1) /ZendEngine2 zend_compile.c Log: Added depreciation notice for {} string offset access. http://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?r1=1.647.2.12&r2=1.647.2.13&ty=u Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.647.2.12 ZendEngine2/zend_compile.c:1.647.2.13 --- ZendEngine2/zend_compile.c:1.647.2.12 Tue Nov 15 11:49:40 2005 +++ ZendEngine2/zend_compile.c Wed Nov 16 09:55:21 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.647.2.12 2005/11/15 16:49:40 dmitry Exp $ */ +/* $Id: zend_compile.c,v 1.647.2.13 2005/11/16 14:55:21 iliaa Exp $ */ #include <zend_language_parser.h> #include "zend.h" @@ -465,6 +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"); fetch_array_dim(result, parent, offset TSRMLS_CC); }

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