From 1f73c8cad85bd5c459b4fa8c58c53e6897d6cbdc Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 13 Oct 2005 13:25:22 +0000 Subject: [PATCH] Values must be static expressions (bug #34634) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@198353 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/constants.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/language/oop5/constants.xml b/language/oop5/constants.xml index 65259835a1..951ac17782 100644 --- a/language/oop5/constants.xml +++ b/language/oop5/constants.xml @@ -1,5 +1,5 @@ - + Class Constants @@ -10,6 +10,10 @@ cannot be accessed from an instance of the object (using $object::constant). + + The value must be a constant expression, not (for example) a variable, a + class member, result of a mathematical operation or a function call. + Defining and using a constant