mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
array: link to reserved words, notices not warnings are generated.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@81477 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
9fbffff3b2
commit
06049c5efe
1 changed files with 5 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.78 $ -->
|
||||
<!-- $Revision: 1.79 $ -->
|
||||
<chapter id="language.types">
|
||||
<title>Types</title>
|
||||
|
||||
|
@ -1277,16 +1277,17 @@ $error_descriptions[8] = "This is just an informal notice";
|
|||
At some point in the future, the PHP team might want to add another
|
||||
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.
|
||||
<literal>default</literal> this way, since they are special
|
||||
<link linkend="reserved">reserved keywords</link>.
|
||||
</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 an
|
||||
you will see that PHP generates notices whenever an
|
||||
<literal>index</literal> is used which is not defined
|
||||
(put the line <literal>error_reporting(E_ALL);</literal>
|
||||
in your script)
|
||||
in your script).
|
||||
</simpara>
|
||||
</note>
|
||||
<note>
|
||||
|
|
Loading…
Reference in a new issue