svn: /phpdoc/en/trunk/language/ constants.xml
| From: | Chris Wright | Date: | Fri, 16 May 2014 15:13:31 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/ constants.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-12477@lists.php.net to get a copy of this message | ||
daverandom Fri, 16 May 2014 15:13:31 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=333547
Log:
Add try/catch to list of places where const keyword cannot be used.
Changed paths:
U phpdoc/en/trunk/language/constants.xml
Modified: phpdoc/en/trunk/language/constants.xml
===================================================================
--- phpdoc/en/trunk/language/constants.xml 2014-05-15 23:22:29 UTC (rev 333546)
+++ phpdoc/en/trunk/language/constants.xml 2014-05-16 15:13:31 UTC (rev 333547)
@@ -173,8 +173,9 @@
As opposed to defining constants using <function>define</function>,
constants defined using the <literal>const</literal> keyword must be
declared at the top-level scope because they are defined at compile-time.
- This means that they cannot be declared inside functions, loops or
- <literal>if</literal> statements.
+ This means that they cannot be declared inside functions, loops,
+ <literal>if</literal> statements or <literal>try</literal>/
+ <literal>catch</literal> blocks.
</para>
</note>