Re: Deprecate and remove case-insensitive constants?

From: Date: Tue, 12 Sep 2017 14:04:28 +0000
Subject: Re: Deprecate and remove case-insensitive constants?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-100540@lists.php.net to get a copy of this message
On 12 September 2017 at 14:04, Christoph M. Becker <cmbecker69@gmx.de> wrote: > > I don't think we can do that. Consider, for instance, ext/gd where all > functions are actually in lower case, but I've seen a lot of code > written in pascal or camel case to make the functions better readable, e.g. > > imageCreateFromJpeg() vs. imagecreatefromjpeg() It's pretty easy to imagine that if we had function autoloading, creating an optional small backwards compatibility shim/library to work around that problem would be pretty easy. It's also the type of error that would be easy to add a deprecation warning to in a late 7.x branch. cheers Dan

« previous php.internals (#100540) next »