On 08.02.2019 at 09:59, Nikita Popov wrote: > On Thu, Feb 7, 2019 at 11:31 PM Christoph M. Becker <cmbecke...@gmx.de> > wrote: > >> I just learned that com_load_typelib()[1] automatically registers enum >> members as constants, and allows to register them as case-insensitive >> (the default is case-sensitive, despite the documentation, which I'm >> going to fix right away). If a typelib is implicitly loaded, >> com.autoregister_casesensitive[2] controls whether constants are >> registered case-sensitively or not. It seems to me com_load_typelib() >> should trigger a deprecation warning, if FALSE is passed as second >> argument, and also disabling com.autoregister_casesensitive should. >> >> Can this be amemded for PHP 7.3.3, or are there any objections? >> >> [1] <http://php.net/manual/en/function.com-load-typelib.php> >> [2] >> < >> http://php.net/manual/en/com.configuration.php#ini.com.autoregister-casesensitive > > Thanks for pointing this out! Agree that both of those should be deprecated > .... in fact the necessary for code handling case-insensitive constants is > already gone in master, so they'll definitely have to go as well. > > Personally I think it would be best to add the deprecations in 7.4, as > there's no particular rush and we usually don't add deprecations in patch > releases. I don't have a problem with them being added in 7.3.3 either > though, this is not exactly prime functionality and we're early in the > release cycle...
Postponing this to 7.4 is fine for me. I'll provide a respective PR within the next days. -- Christoph M. Becker -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php