note 112286 deleted from language.oop5.constants by cmb

From: Date: Tue, 09 Aug 2016 11:32:49 +0000
Subject: note 112286 deleted from language.oop5.constants by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-206247@lists.php.net to get a copy of this message
Note Submitter: Joshua Dickerson ---- 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.

« previous php.notes (#206247) next »