Re: Initializing constants once, with code?

From: Date: Thu, 02 Jan 2020 23:14:28 +0000
Subject: Re: Initializing constants once, with code?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-107963@lists.php.net to get a copy of this message
There's also a fourth approach that does not involve any changes to PHP: autoload + eval. When PHP is looking for your class, in your autoload you load the values from config, generate the class source and eval() it.

« previous php.internals (#107963) next »