note 112286 added to language.oop5.constants
| From: | JoshuaDickerson | Date: | Mon, 27 May 2013 22:51:31 +0000 |
| Subject: | note 112286 added to language.oop5.constants | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-194972@lists.php.net to get a copy of this message | ||
Class constants are allocated per instance of the class. If you create a class with 100 constants,
each with 100 bytes, and 100 instances of that class, you will use 1 million bytes. Obviously that
is a fringe case but remember that when you are creating constants that you might not need in every
instance.
----
Server IP: 64.71.164.2
Probable Submitter: 69.142.102.88
----
Manual Page -- http://php.net/manual/en/language.oop5.constants.php
Edit -- https://master.php.net/note/edit/112286
Del: integrated -- https://master.php.net/note/delete/112286/integrated
Del: useless -- https://master.php.net/note/delete/112286/useless
Del: bad code -- https://master.php.net/note/delete/112286/bad+code
Del: spam -- https://master.php.net/note/delete/112286/spam
Del: non-english -- https://master.php.net/note/delete/112286/non-english
Del: in docs -- https://master.php.net/note/delete/112286/in+docs
Del: other reasons-- https://master.php.net/note/delete/112286
Reject -- https://master.php.net/note/reject/112286
Search -- https://master.php.net/manage/user-notes.php