vrana Thu Oct 13 09:25:25 2005 EDT
Modified files:
/phpdoc/en/language/oop5 constants.xml
Log:
Values must be static expressions (bug #34634)
http://cvs.php.net/diff.php/phpdoc/en/language/oop5/constants.xml?r1=1.6&r2=1.7&ty=u
Index: phpdoc/en/language/oop5/constants.xml
diff -u phpdoc/en/language/oop5/constants.xml:1.6
phpdoc/en/language/oop5/constants.xml:1.7
--- phpdoc/en/language/oop5/constants.xml:1.6 Wed Aug 3 14:21:30 2005
+++ phpdoc/en/language/oop5/constants.xml Thu Oct 13 09:25:22 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<sect1 id="language.oop5.constants">
<title>Class Constants</title>
<para>
@@ -10,6 +10,10 @@
cannot be accessed from an instance of the object (using
<literal>$object::constant</literal>).
</para>
+ <para>
+ The value must be a constant expression, not (for example) a variable, a
+ class member, result of a mathematical operation or a function call.
+ </para>
<example>
<title>Defining and using a constant</title>