From 6937b29491ae2069120fc3bcefa71741d30ac2f7 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Tue, 9 Aug 2016 11:32:38 +0000 Subject: [PATCH] Class constants are allocated once per class We try to get rid of the myth that class constants were allocated for each instance, as claimed by user note 112286. Proof: . git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339824 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/constants.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/language/oop5/constants.xml b/language/oop5/constants.xml index 195938c22e..ff70ad8eee 100644 --- a/language/oop5/constants.xml +++ b/language/oop5/constants.xml @@ -22,6 +22,10 @@ The variable's value can not be a keyword (e.g. self, parent and static). + + Note that class constants are allocated once per class, and not for each + class instance. + Defining and using a constant