From: Ilia Alshanetsky Date: Wed, 16 Nov 2005 14:55:21 +0000 (+0000) Subject: Added depreciation notice for {} string offset access. X-Git-Tag: php-5.1.0RC5~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aab9009deb8906ebd43238b71d426cc924160396;p=php Added depreciation notice for {} string offset access. --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 85923e622e..f8f3d99572 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -465,6 +465,7 @@ void fetch_array_dim(znode *result, znode *parent, znode *dim TSRMLS_DC) 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); }