svn: /phpdoc/en/trunk/language/ constants.xml
| From: | Christoph Michael Becker | Date: | Sun, 06 Sep 2015 17:02:36 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/ constants.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13716@lists.php.net to get a copy of this message | ||
cmb Sun, 06 Sep 2015 17:02:36 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=337760
Log:
undefined qualified constants raise a fatal error (fixes #70421)
Bug: https://bugs.php.net/70421 (Assigned) Inconsistant
constant errors
Changed paths:
U phpdoc/en/trunk/language/constants.xml
Modified: phpdoc/en/trunk/language/constants.xml
===================================================================
--- phpdoc/en/trunk/language/constants.xml 2015-09-06 15:53:03 UTC (rev 337759)
+++ phpdoc/en/trunk/language/constants.xml 2015-09-06 17:02:36 UTC (rev 337760)
@@ -101,7 +101,9 @@
when this happens. See also the manual entry on why
<link linkend="language.types.array.foo-bar">$foo[bar]</link> is
wrong (unless you first <function>define</function>
- <literal>bar</literal> as a constant). If you simply want to check if a
+ <literal>bar</literal> as a constant). This does not apply to <link
+ linkend="language.namespaces.rules">(fully) qualified constants</link>,
+ which will raise a fatal error if undefined. If you simply want to check if a
constant is set, use the <function>defined</function> function.
</simpara>
<para>