cvs: phpdoc /en/language types.xml

From: Date: Wed, 08 May 2002 18:39:54 +0000
Subject: cvs: phpdoc /en/language types.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969345356@lists.php.net to get a copy of this message
mfischer Wed May 8 14:39:54 2002 EDT Modified files: /phpdoc/en/language types.xml Log: - 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. Index: phpdoc/en/language/types.xml diff -u phpdoc/en/language/types.xml:1.77 phpdoc/en/language/types.xml:1.78 --- phpdoc/en/language/types.xml:1.77 Tue May 7 05:57:26 2002 +++ phpdoc/en/language/types.xml Wed May 8 14:39:52 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.77 $ --> +<!-- $Revision: 1.78 $ --> <chapter id="language.types"> <title>Types</title> @@ -1278,23 +1278,13 @@ constant or keyword, and then you get in trouble. For example, you already cannot use the words <literal>empty</literal> and <literal>default</literal> this way, since they are special keywords. - <!-- <jeroen>hmm... i'm doubting this myself. Finish it if you like</jeroen> - But probably - the most threatening - thing is yourself, or whoever will maintain the script. You'll - maybe get very strange behaviour, and - --> - </para> - <para> - And, if these arguments don't help: this syntax is simply deprecated, - and it might stop working some day. </para> <note> <simpara> When you turn <link linkend="function.error-reporting" >error_reporting</link> to <literal>E_ALL</literal>, - 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 + <literal>index</literal> is used which is not defined (put the line <literal>error_reporting(E_ALL);</literal> in your script) </simpara>

« previous php.doc (#969345356) next »