From 9fbffff3b2570705df4c186358e62c2ffbe98d87 Mon Sep 17 00:00:00 2001 From: Markus Fischer Date: Wed, 8 May 2002 18:39:52 +0000 Subject: [PATCH] - Removed bogus sentence stating that $array[index] is going do be deprecated 'someday'. It simply isn't. Until it isn't decided, this sentence doesn't belong in here. Just consider that 'index' could be a defined() constant. Also removed comments which made no sense. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@81475 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/types.xml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/language/types.xml b/language/types.xml index 36a40ba712..7679fddf2c 100644 --- a/language/types.xml +++ b/language/types.xml @@ -1,5 +1,5 @@ - + Types @@ -1278,23 +1278,13 @@ $error_descriptions[8] = "This is just an informal notice"; constant or keyword, and then you get in trouble. For example, you already cannot use the words empty and default this way, since they are special keywords. - - - - And, if these arguments don't help: this syntax is simply deprecated, - and it might stop working some day. When you turn error_reporting to E_ALL, - you will see that PHP generates warnings whenever this construct - is used. This is also valid for other deprecated 'features'. + you will see that PHP generates warnings whenever an + index is used which is not defined (put the line error_reporting(E_ALL); in your script)