cvs: phpdoc /en/language/oop5 constants.xml paamayim-nekudotayim.xml static.xml
| From: | Etienne Kneuss | Date: | Thu, 01 Nov 2007 21:36:54 +0000 |
| Subject: | cvs: phpdoc /en/language/oop5 constants.xml paamayim-nekudotayim.xml static.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-328@lists.php.net to get a copy of this message | ||
colder Thu Nov 1 21:36:54 2007 UTC
Modified files:
/phpdoc/en/language/oop5 constants.xml paamayim-nekudotayim.xml
static.xml
Log:
Document the fact that $classname="self"; is not supported
http://cvs.php.net/viewvc.cgi/phpdoc/en/language/oop5/constants.xml?r1=1.11&r2=1.12&diff_format=u
Index: phpdoc/en/language/oop5/constants.xml
diff -u phpdoc/en/language/oop5/constants.xml:1.11 phpdoc/en/language/oop5/constants.xml:1.12
--- phpdoc/en/language/oop5/constants.xml:1.11 Sun Oct 21 15:57:09 2007
+++ phpdoc/en/language/oop5/constants.xml Thu Nov 1 21:36:53 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.11 $ -->
+<!-- $Revision: 1.12 $ -->
<sect1 xml:id="language.oop5.constants" xmlns="http://docbook.org/ns/docbook">
<title>Class Constants</title>
<para>
@@ -14,6 +14,8 @@
<para>
As of PHP 5.3.0, it's possible to reference the class using a variable.
+ Keywords like <literal>self</literal>, <literal>parent</literal> or
+ <literal>static</literal> are not allowed in dynamic class references.
</para>
<example>
http://cvs.php.net/viewvc.cgi/phpdoc/en/language/oop5/paamayim-nekudotayim.xml?r1=1.11&r2=1.12&diff_format=u
Index: phpdoc/en/language/oop5/paamayim-nekudotayim.xml
diff -u phpdoc/en/language/oop5/paamayim-nekudotayim.xml:1.11
phpdoc/en/language/oop5/paamayim-nekudotayim.xml:1.12
--- phpdoc/en/language/oop5/paamayim-nekudotayim.xml:1.11 Sun Oct 21 15:57:09 2007
+++ phpdoc/en/language/oop5/paamayim-nekudotayim.xml Thu Nov 1 21:36:53 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.11 $ -->
+<!-- $Revision: 1.12 $ -->
<sect1 xml:id="language.oop5.paamayim-nekudotayim" xmlns="http://docbook.org/ns/docbook">
<title>Scope Resolution Operator (::)</title>
@@ -18,6 +18,8 @@
<para>
As of PHP 5.3.0, it's possible to reference the class using a variable.
+ Keywords like <literal>self</literal>, <literal>parent</literal> or
+ <literal>static</literal> are not allowed in dynamic class references.
</para>
<para>
http://cvs.php.net/viewvc.cgi/phpdoc/en/language/oop5/static.xml?r1=1.14&r2=1.15&diff_format=u
Index: phpdoc/en/language/oop5/static.xml
diff -u phpdoc/en/language/oop5/static.xml:1.14 phpdoc/en/language/oop5/static.xml:1.15
--- phpdoc/en/language/oop5/static.xml:1.14 Sun Oct 21 15:57:09 2007
+++ phpdoc/en/language/oop5/static.xml Thu Nov 1 21:36:53 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.14 $ -->
+<!-- $Revision: 1.15 $ -->
<sect1 xml:id="language.oop5.static" xmlns="http://docbook.org/ns/docbook">
<title>Static Keyword</title>
@@ -33,7 +33,9 @@
</para>
<para>
- As of PHP 5.3.0, it's possible to reference the class using a variable.
+ As of PHP 5.3.0, it's possible to reference the class using a variable.
+ Keywords like <literal>self</literal>, <literal>parent</literal> or
+ <literal>static</literal> are not allowed in dynamic class references.
</para>
<example>