cvs: phpdoc /en/language/oop5 constants.xml

From: Date: Thu, 13 Oct 2005 13:25:25 +0000
Subject: cvs: phpdoc /en/language/oop5 constants.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969370584@lists.php.net to get a copy of this message
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>

« previous php.doc (#969370584) next »