Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104303 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 8417 invoked from network); 8 Feb 2019 12:17:45 -0000 Received: from unknown (HELO mail-it1-f194.google.com) (209.85.166.194) by pb1.pair.com with SMTP; 8 Feb 2019 12:17:45 -0000 Received: by mail-it1-f194.google.com with SMTP id h193so7118197ita.5 for ; Fri, 08 Feb 2019 00:59:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=o/KI6oOaWd3xdYAurBZ6aYWd5wLYoEDuwG7xk5myOTU=; b=AgxYMboid8vPQ13n8UuUm/0mGmjgpJisPgYaUJw+reP8Wz2b5KO9EC8WM4sXzNvJoi 6Avbq4H9nPw6Xj2YCLfv0PEBQiQbGC5ePe6UwX0RXNm34hAiNOYdYQLkm8ghH975LQFq f9UwAfaLarFxCnh9zFxI4rTFEkbFQZounSNqGRek+KMQvSNkM/a8R0joEgyRLEW5YmnD 3V+x+eaiq34XdW3LErqiWBh6HCjpfQFjQykE5P7W8Y3TZDp0NmxsoXsTqL3wcYFfzfp4 IDxblaAh2Vucuu7RiuTB8wS7q8xiN5YzzmxnMYBEUC6oEgetFQZ7Ii9n9eCCTIWfYB8H ORfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=o/KI6oOaWd3xdYAurBZ6aYWd5wLYoEDuwG7xk5myOTU=; b=FZooy3MLFO0iWRAfURKV3T3KfHgvR5a4d5bN9B59ovEjzpZnc1htU7Rtq8DYWzi7Je /y/7dCBZjmupklAUMBi9uH84EfHXQb3Shq3HKJA5qWZyk0ZJK93TKEJed1bdMGQ/HHft hX2YvgBSZFt7bmpcNx7FW23DnbQv8Zt22QHzqORtiFHIlCIb3f6oQ0dM1LLl1wxhrZNp i9w302Nj5WJfKRpN9yAWc5t8yr00lZigRjn8SR0RXTxCkbH6Om6qCT7dJuWE9YP1cZSj dnxRXMIulKzEPtqhzGm5db9fbfsv3vC++nOvnBxtybWANe72pxEU+3m6/FIphI6Lr8BR 5LwA== X-Gm-Message-State: AHQUAuYMxKZe9boTwgD98J9HVb8PmqZL9Qkq/TadH353G9N+1j5w5yiu Xpbb5sMQ5hiUexiyn431VASvTO90cPv2HgZyvuo= X-Google-Smtp-Source: AHgI3IapcHPZg/9A029FA2Lb3bxedabn+7T8MGmkAq9v0MZ6m2XW7tsxO4tdUAhQhvGWb2Ojr5m1l+hvguiT0fQ26oo= X-Received: by 2002:a5d:88d3:: with SMTP id i19mr9206755iol.187.1549616375963; Fri, 08 Feb 2019 00:59:35 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 8 Feb 2019 09:59:19 +0100 Message-ID: To: "Christoph M. Becker" Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000a0a33005815e2d90" Subject: Re: [VOTE] Deprecate and remove case-insensitive constants From: nikita.ppv@gmail.com (Nikita Popov) --000000000000a0a33005815e2d90 Content-Type: text/plain; charset="UTF-8" On Thu, Feb 7, 2019 at 11:31 PM Christoph M. Becker wrote: > On 16.07.2018 at 19:00, Nikita Popov wrote: > > > On Mon, Jul 9, 2018 at 10:36 AM, Nikita Popov > wrote: > > > >> I would like to open the vote on the RFC for the deprecation (in PHP > 7.3) > >> and removal (in PHP 8.0) of case-insensitive constants. > >> > >> https://wiki.php.net/rfc/case_insensitive_constant_deprecation > >> > >> If you missed the discussion for this RFC, you can read up on it here: > >> > >> https://externals.io/message/102389 > >> > >> As this is a language change, the vote requires a 2/3 supermajority. The > >> vote will be open until 2018-07-09. > >> > > > > I'm happy to announce that this RFC has been accepted unanimously with 39 > > votes in favor and 0 against. > > 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... Nikita --000000000000a0a33005815e2d90--