svn: /phpdoc/en/trunk/appendices/ reserved.xml
| From: | Christoph Michael Becker | Date: | Fri, 17 Jun 2016 17:41:40 +0000 |
| Subject: | svn: /phpdoc/en/trunk/appendices/ reserved.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-14202@lists.php.net to get a copy of this message | ||
cmb Fri, 17 Jun 2016 17:41:40 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=339385
Log:
Fix #72444: Documentation doesn't reflect loosening of reserved word restrictions
Bug: https://bugs.php.net/72444 (Open) Documentation
doesn't reflect loosening of reserved word restrictions
Changed paths:
U phpdoc/en/trunk/appendices/reserved.xml
Modified: phpdoc/en/trunk/appendices/reserved.xml
===================================================================
--- phpdoc/en/trunk/appendices/reserved.xml 2016-06-17 16:24:27 UTC (rev 339384)
+++ phpdoc/en/trunk/appendices/reserved.xml 2016-06-17 17:41:40 UTC (rev 339385)
@@ -6,7 +6,7 @@
<para>
The following is a listing of predefined identifiers in PHP. None
of the identifiers listed here should be used as identifiers in any of
- your scripts. These lists include keywords and predefined variable,
+ your scripts unless explicitly noted otherwise. These lists include keywords and predefined
variable,
constant, and class names. These lists are neither exhaustive or
complete.
</para>
@@ -20,6 +20,11 @@
of the following words as constants, class names, function or method names.
Using them as variable names is generally OK, but could lead to confusion.
</simpara>
+ <simpara>
+ As of PHP 7.0.0 these keywords are allowed as as property, constant, and
+ method names of classes, interfaces and traits, except that
+ <literal>class</literal> may not be used as constant name.
+ </simpara>
<table>
<title>PHP Keywords</title>