Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100598 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20203 invoked from network); 14 Sep 2017 16:02:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2017 16:02:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.68 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 74.125.82.68 mail-wm0-f68.google.com Received: from [74.125.82.68] ([74.125.82.68:36398] helo=mail-wm0-f68.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E2/62-19300-A18AAB95 for ; Thu, 14 Sep 2017 12:02:34 -0400 Received: by mail-wm0-f68.google.com with SMTP id r136so513935wmf.3 for ; Thu, 14 Sep 2017 09:02:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=IoGXdY8SaOxFlr6hMDiat8qvX3/0t/Kci84NZmyDzhk=; b=CNvrc9aXS93Ud0SS30saLMRVWAJSXgXoyOseixexBph0rl9L6EyTy51FYEN+40F+TD zuGJnLyfl+7U0SeRi3F7nbxgzpgG06CMN1+kxrF+fXM6BQaxAmhG5J35Yi6jSQ0Fyz9y 0ZKCzDspVmz33LYeniSvzhse2thRI5Vgo+cCUCEXTKsqB6pFPB6TWecfS5qT4nOfuTjh 31ZuurIQ1wCmbh4m+pMro8287UsfjgQd2txkum4NtueDIlDrnqmLiUzDDPKLshg8/OLN 3j3Ho4QltxpdlNOlJWF7QJXlDogo108ymTMqwOSKVbFKhYRBtukDsGgfbyC6jFGadlw6 5RoA== 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=IoGXdY8SaOxFlr6hMDiat8qvX3/0t/Kci84NZmyDzhk=; b=MyewC5Dwp0OWS96Y7gDpfTLSxTevsSfwSOepvX4zCKK7kLbdW8+e7ni4lT0gzSncsd BSGAdBHllw25VwJ4x+YmDwxrNhYo7WtowpEchjIJsGmODMTreN3mhuDgZmcIyq4W25Ot zdFZO8+aVICBrYFNRQA7EZo5R1HWQnAm4r4cOTnoBbvTbPvQl+jDkQpJ7WaqXkT1JPCB i14ZoWSqDr0YgEq3ChjhRAZrP2SRib/OKBq/Ovd3CgU70TO2fM6GYHzgmnZCwH612LPm x6dilxHmvkmdXVaZInuj7KTIM+9yU7j4s6INAFdKjGwDx6t83lKD4KD+8hwFedMjL5u9 +ClA== X-Gm-Message-State: AHPjjUgwrMP7hhWGz5/ftPe/hZ08ps+Z11Roni9ti2/NEy36C92qdmOc qxhHg4b4y0Tl/HqBHglYxVhlkIB4oGx64hFUUWAjCw== X-Google-Smtp-Source: AOwi7QCzIveiTidsjeN5z0bopnX6gqdjjjFzSEgP4qV1hRVeut3s/GrALppC2wKIkQd+QXoKEH+1Q3nx+5AqIWTvZfc= X-Received: by 10.28.164.68 with SMTP id n65mr425585wme.23.1505404951338; Thu, 14 Sep 2017 09:02:31 -0700 (PDT) MIME-Version: 1.0 Sender: morrison.levi@gmail.com Received: by 10.28.193.130 with HTTP; Thu, 14 Sep 2017 09:02:30 -0700 (PDT) In-Reply-To: References: Date: Thu, 14 Sep 2017 10:02:30 -0600 X-Google-Sender-Auth: BW7aCIszcl7j2prri2qHztkzHqA Message-ID: To: Sara Golemon 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: levim@php.net (Levi Morrison) On Thu, Sep 14, 2017 at 9:38 AM, Sara Golemon wrote: > On Tue, Sep 12, 2017 at 8:02 AM, Christoph M. Becker wrote: >> Usually constant identifiers are treated case-sensitive in PHP. This is >> always the case for constants defined via a `const` declaration. >> However, define() allows to pass TRUE as third argument to define a >> case-insensitive constant. This feature appears to potentially result >> in confusion, and also causes bugs as shown in >> . See an example created by Nikita to see >> some probably unexpected behavior: . >> > I'd just like to ask everyone on this thread to circle back to the > actual topic: Case-Insensitive Constants. Nothing else is on topic > here. If you'd like to argue the value of Turkish case folding and > its impact on combined symbol tables in 40 year old software, I > encourage you to start a new thread for that topic. > > Of the minority of responses to this thread reflecting on the actual > goal of the proposal, I've seen responses from "sure, why not?" to > "what's the point?", but if there was a coherent argument firmly > against, I must have missed it. > > So could we focus on the topic at hand, please? For what it is worth the Turkish locale issue is on-topic. If we have case sensitivity and case insensitivity simultaneously in constants and we decide to drop one then the locale issue points towards dropping case insensitivity.