Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100550 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31766 invoked from network); 12 Sep 2017 19:56:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Sep 2017 19:56:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.220.175 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.220.175 mail-qk0-f175.google.com Received: from [209.85.220.175] ([209.85.220.175:33642] helo=mail-qk0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BC/F7-10715-1DB38B95 for ; Tue, 12 Sep 2017 15:56:01 -0400 Received: by mail-qk0-f175.google.com with SMTP id o129so27514231qkd.0 for ; Tue, 12 Sep 2017 12:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=r2p93zTH0bDeLPTzK0DL1Ky19fPMMIEg0/3EMJzirW8=; b=Dx+thy4V4sYBikYEMssdIxlNB9sDfchkE/NnK4l1Pmr1D+LFRZD3Avl7kcFGic+xTJ /PRovUn4sRBj+BVDZDn0KFwWweFvoTZozi+efnqp9fedl9UDRXFBRGSISW3pnO6lZwcl lFbsL0U5Hn0Q9T/+Sl72HbhyLVgj8zLXzzl9N0F8DC1nkhSyef8tPMPywOQh+x0RxiUd b0broG0tmuNAujHz9pCOlNnpIgF9K7zChGwHsr5Z6XhebiUEg75tKAib86WnMp4+kblf xW9NeTmsHDr62HNq7PYhQ0UymOQhNTltLVthEoe/7pUvXYmRHNE2dDR0ijYb6CdrXuXr uVVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=r2p93zTH0bDeLPTzK0DL1Ky19fPMMIEg0/3EMJzirW8=; b=JLNhWzNG8CB4+YrFsCF9m4w5/7XRfXYa3zbNSNOd2pVDgRkoBF/A2Sl1lPop8JV6lb AWRbkFjrassUWF6fL683U0gKXUHwvm13VqBDgBPH7KdNCQISklSq2/tZz0U3j6GhsfMN tLUatBWOG9rhmwl2VzMpm6v+6dsAaM5c6kN3eyy0Cf0URh0LNyICYrjmINcOn26+ssnr OGi8YC0YcDPj5NqtOuj/OxCa5c6rHUrF49NQFN2AG01t4vTK1KYhKgFvPqoCQbUltOdy tACKhdey3F7HlPaoK0DLUKbHI3CZ052Pa2m5U/xnN1Z+EHNlw9jYRsCPj7468YKxH69H ddMw== X-Gm-Message-State: AHPjjUhiQIusUM+c5uDPLWQ68KScMly2Ao+r5/2qZCbTpvCPPBw6oKy9 X5EQrBELmY4lCF9p81LcWczHiDKWrWAN X-Google-Smtp-Source: AOwi7QCRKXoiBEbnU3riARVZVzFOBim+9UpvtqMydbdY48StvLKzjqp3Gj1DMd81rLE76b5B9TaMyom6zOJ9UJXNX2U= X-Received: by 10.55.123.1 with SMTP id w1mr11517357qkc.114.1505246157963; Tue, 12 Sep 2017 12:55:57 -0700 (PDT) MIME-Version: 1.0 Sender: php@golemon.com Received: by 10.12.132.3 with HTTP; Tue, 12 Sep 2017 12:55:57 -0700 (PDT) X-Originating-IP: [206.252.215.26] In-Reply-To: <5a9001ea-2a3c-8ea6-d5ef-1da326009414@gmail.com> References: <5a9001ea-2a3c-8ea6-d5ef-1da326009414@gmail.com> Date: Tue, 12 Sep 2017 19:55:57 +0000 X-Google-Sender-Auth: FWYV6Miz1OeanD0odkjTpr6TZWE Message-ID: To: Stanislav Malyshev Cc: "Christoph M. Becker" , "internals@lists.php.net" Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Deprecate and remove case-insensitive constants? From: pollita@php.net (Sara Golemon) On Tue, Sep 12, 2017 at 7:43 PM, Stanislav Malyshev wrote: > I don't think HHVM not supporting something can be an argument. > I agree there, though I will offer that part of the reason HHVM has never bothered to support case-insensitive constants is that it's simply never needed to. The only major project that didn't work out of the box was Wordpress, and when they saw my blogpost about their one case-insensitive constant, they switched it to being case-sensitive, because EVEN WORDPRESS thought they'd maintained that BC long enough. :) > I'm worried about TRUE vs. True vs. true though - I've see all of those used > around the code (not tRuE though ;) and breaking that would add a ton of > meaningless work to maintainers without any upside. Same with NULL/null etc. > We could always special case these in the lexer, or during compile-time constant folding. I agree they're a concern (and already noted as much in my previous reply), but they're an entirely tractable concern. -Sara