Re: Proposal: Raise severity of undefined constants

From: Date: Wed, 28 Jan 2015 00:19:02 +0000
Subject: Re: Proposal: Raise severity of undefined constants
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-81267@lists.php.net to get a copy of this message
Hey Rowan, I actually was thinking about doing this myself, if function/constant autoloading passed. That would mean that if you really needed this behaviour for some reason, you could write a constant autoloader that reimplements it. One concern I’d have is the use of constants in constant scalar expressions. In implementation, we’d need to make sure those produce an error, not just normal constant usage. Anyway, I’m very much in favour of this. Please go ahead! Thanks. -- Andrea Faulds http://ajf.me/

« previous php.internals (#81267) next »