Values must be static expressions (bug #34634)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@198353 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2005-10-13 13:25:22 +00:00
parent 0ddcc7aa12
commit 1f73c8cad8

View file

@ -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>