Re: [PHP-DEV] Deprecate and remove case-insensitive constants?

This is only part of a thread. view whole thread
September 12, 2017 14:04 (Dan Ackroyd)
On 12 September 2017 at 14:04, Christoph M. Becker <> 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