summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-11-16 14:55:21 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-11-16 14:55:21 +0000
commitaab9009deb8906ebd43238b71d426cc924160396 (patch)
treef5a76aaa196a4e1808965573b564b5293b5a5358 /Zend/zend_compile.c
parent209169786a7fda2897f5ab36c7cb555007aa90c2 (diff)
downloadphp-git-aab9009deb8906ebd43238b71d426cc924160396.tar.gz
Added depreciation notice for {} string offset access.
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r--Zend/zend_compile.c1
1 files changed, 1 insertions, 0 deletions
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);
}