Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104352 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 30401 invoked from network); 11 Feb 2019 22:17:51 -0000 Received: from unknown (HELO mout.gmx.net) (212.227.15.18) by pb1.pair.com with SMTP; 11 Feb 2019 22:17:51 -0000 Received: from [192.168.2.104] ([91.8.175.193]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MYOY5-1gWyqs2Nft-00V7BB; Mon, 11 Feb 2019 20:00:31 +0100 To: Nikita Popov Cc: PHP internals References: Message-ID: Date: Mon, 11 Feb 2019 20:00:34 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:AHbV0MrWWcjjveSirjov08uUTurr3t2cxvnW58lp+CD4UiF5AjZ eXba6xGysjYxMljWL9zxNUbYWmpnrTKg/csvXTpQ9MqzB91pGKxfdoPHiNaTEdVi8fkOEZe NJ/ZlxeuRYRJvmj75KDi/dNc1IAGPWCt/Woc1bHEk7Dzxv4RbqYHmGoySh1xAXZzHjz/u3R +dsUcMfvoPzuO1w7gxEFg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:A4AL4ZC80vc=:YgB+25JvQFQng+HrUbKYbC EnZVVwaWYzc/LKJ5LCyRRjTY0Gt05ZmEFEkiHakCS9487SyVSsxq6VnP72mJ9v+bUzZOCz9v1 lKkyKd4Ey8INPCf19T4dojF6fSFaVNn/zlhhTyGHQRp7mHZt/HyhxhzhF66zFU5yxTcrcq1k8 V9qxyysvrMJ8wdPj5xWz3NlR7myU1aNRYhgZRmEznxOmhX1c9RIsfRYH1ruL+tllCTeGvYAO1 xSwjYFY/QdZ7VdbYOhP6xAjawHYrpxWXbRDRlP2i8AqfF0I6uB99vZgiK0kSnVXzXsZDYxexT 4nd0kNZ4/aPuYV3295o30iWTqpXs24TH2ilDcFUNJGzToLYXSFKwzGHv7c1QgGWn1s2HWODVF nJy/T8fMRp2JlLdH0SEOAukNoa/k3WOFlOHT3mj8sBbawRYLjYDi+VnQqAs9VUgw2G24tE3f1 V5N2QcI/z1GltIoswrPySNWvYxpH1gPObsxsR+faCW1EkDUi3Wk4oN48nsRP/mBjAdut3Jjop O2T0TqfykwO7GaKTYqJlxzQfAvFHALcPqJawGm4+/Aid29a9wOBYDQ/ifCvqVfuYqmyLtA6aO xSfDqAdirDZRwe0dap+qMMQAivobxN5F41QkoQNg9spld7pUPinQjzQICL500isE2RbO2TQPC XD0zFIYDhPcMRT8n+VFOuWsmW85Y8GVCpUrWadm3kaQMrJ6RiW8dO6UROo3rw04mwHZYyYLM8 kyCos5xjDE+LoTXUqqksXSt7axMo1w6QvDmNktGRK3b1bX2057I4aJl4WN5p3C3QJuUsfLn0F RlDFfdv2bQkT39VcaFSBsR6yG/+NbqKDPeAKEws4gCya+JIQTzJVEL4kYSZn4oihGJCtnDoNp 8gd1KqN3VXHltLyELRGYFfERhPMu1cISBuRQb6FhD5BfRXKIzUQYq1rNt1xmZgkcbf9Rdkjg/ PQpQkMkfnfA== Subject: Re: [VOTE] Deprecate and remove case-insensitive constants From: cmbecker69@gmx.de ("Christoph M. Becker") On 08.02.2019 at 09:59, Nikita Popov wrote: > On Thu, Feb 7, 2019 at 11:31 PM Christoph M. Becker > 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] >> [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