Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100685 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69309 invoked from network); 16 Sep 2017 19:33:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Sep 2017 19:33:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.52 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.218.52 mail-oi0-f52.google.com Received: from [209.85.218.52] ([209.85.218.52:52771] helo=mail-oi0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EE/47-19300-1AC7DB95 for ; Sat, 16 Sep 2017 15:33:53 -0400 Received: by mail-oi0-f52.google.com with SMTP id p126so2202249oih.9 for ; Sat, 16 Sep 2017 12:33:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Gvs5sCDC6mkHRPC3bEQM7cANRkJ02Gh1BvOdUifhADs=; b=FgEoyVW1aPtzyRiwwDHasU5NWjMua0DWnI0GSnF+cKlfAH9POq782+SryBCVGF3Pp1 KPrM+ki5SpnKHpzezsEtSk2tVnZQhGCnHOeT1dovsxxDiyuUM4K+wW7WvC6+0qbgPZ3T OgUn1aMTmOrAW8We8KIKKV/sk/tBHH5aszHUEUcKUSTXsyyqVkGtyXqkGMs+q8lJgiuh sxs+4eucayQmAM5wu1fBpGm+kQNkedQDPU9WXtc/+nyxGmGnTqifAPhiaRSzKttBFoYk Ou/yG6OWAAor4kRw6K/oLMQtezDWcaxOMikviMJXuDIsS9BsJW7gde/gArz+gWzeGESu 8vXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Gvs5sCDC6mkHRPC3bEQM7cANRkJ02Gh1BvOdUifhADs=; b=FDwW5GYHuCFHVlcnNc5+pp1Xbyd96hVPGMCJn1/4VI5nCDyRk20jEWaRPNCshwoQnj QeBmtDARyFMKcZ6iUFDtlNf/lhxsyIMsYmQwQ9Z7RyUnIt4d2pRuTGsTk5eD2RfDJ1w3 vKRrMcFwJYceMFrqg+mf62BcoEpkBQC3xEtmF898Xmut6yGIOfq+Ed13wZ5vEXV63boe nHwV74RtTjXm1tivzvynVfnGmIZErgViM5KSd7t7L2tJ1aMfMZcbKKskzTqPZOVS1YGW kVZoVIFdzErSg1/pj1LwbkJk0pGl2Y0twawXRFRSZWkiYDAwowF94PoVSxS5ZDezvoVK D+HQ== X-Gm-Message-State: AHPjjUhhWuw95b1tKkgWDmlXBIYpb92pC9Pox6Xb9o9JcekcHLESDows 2u3rxe+o6S6qDcLo4Jc= X-Google-Smtp-Source: AOwi7QC81F9DRvECWLst06YYPTtvEQeiHsILrHu5YE+BPZcDtBc4roaB4AuaVMqhP8hcDeaddbwPdg== X-Received: by 10.202.0.204 with SMTP id 195mr32678947oia.271.1505590429901; Sat, 16 Sep 2017 12:33:49 -0700 (PDT) Received: from Stas-Pro-2016.local (108-233-206-104.lightspeed.sntcca.sbcglobal.net. [108.233.206.104]) by smtp.gmail.com with ESMTPSA id n139sm5401163oig.10.2017.09.16.12.33.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 Sep 2017 12:33:49 -0700 (PDT) To: Sara Golemon , Zeev Suraski Cc: "Christoph M. Becker" , "internals@lists.php.net" References: Message-ID: <7f2d9e50-869d-4958-0ffe-249ff9cfd7f1@gmail.com> Date: Sat, 16 Sep 2017 12:33:48 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Deprecate and remove case-insensitive constants? From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > If they were truly case-insensitive, I might agree. However, as I've > mentioned but will reiterate, they're not. They're ASCII case > insensitive, and that's a long cry from real case-insensitivity. PHP > 6 was planning to make case-insensitivity real but obviously that's > dead and buried. Should we really go there then? Full Unicode support for these things is probably not going to happen, and I'd argue not many people actually need it. Like it or not, it is not super-common to write PHP function names or constant names in Russian, Farsi or hiragana. It demoes nice, but I'm not sure that is a primary feature people would seek. > This is ugly, but if I'm playing devil's advocate, it is consistent > with the rest of the core runtime. Frankly, I'd be fine with either - provided that we don't have more than one kind (i.e. if we allow case-insensitive constants, no defining both FOO and Foo). But for cases-sensitivity I am worried about BC impact. We do have a bunch of CI constants in extensions, including such widely used modules as mcrypt. I'm not sure people use it in different cases, but hard to really know... Maybe with suitable deprecation step it'd be OK, but not sure how to make it work for CI constants. -- Stas Malyshev smalyshev@gmail.com