Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100620 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97685 invoked from network); 15 Sep 2017 10:08:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Sep 2017 10:08:51 -0000 Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 74.125.82.45 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 74.125.82.45 mail-wm0-f45.google.com Received: from [74.125.82.45] ([74.125.82.45:45591] helo=mail-wm0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2F/6C-19300-2B6ABB95 for ; Fri, 15 Sep 2017 06:08:51 -0400 Received: by mail-wm0-f45.google.com with SMTP id g206so7006921wme.0 for ; Fri, 15 Sep 2017 03:08:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=wiDnY6SCv4/GgHWZijvTLVJNTOisSCYC3gDK0S84fK0=; b=rZF9r55A1U5nMumv0NlLtj9iRDq3wFqIV+ooiLisMIaBB+WqG0cJkqZOl4H3nREyrX YBmBNkYfCd3Y7px/OdUTfNv/lImO2ZRZJaF9C8ojeRYSxfSrLtNKYYGk4jlXEAoH0Rmy aakDWUgaoVZuIn5hv6xVkA1xr4RbyZuptHEI0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wiDnY6SCv4/GgHWZijvTLVJNTOisSCYC3gDK0S84fK0=; b=KeVbCRroLe+SYtv3lELz00Zwc0JZBd5UprWzEU5vOgdM6PmF0DPK9OGZarOhebVBzs KbwiwXIy/9a6eSPQmW4gcS8cDKfMZz1CHAKlZBdCq/F4WBRmw9xafBXuMp76ob5i+uHk XQxBrPxxz1Vhf4IHqdN+9ixfUllzFeiVheZEjNVJWZmnHUe+qLq3BbReXSE0rjkbHhpQ ubbG/2UGSqMepO080Rnnx/q4Moq5LnffroMrKATnJWs4nUhl5btrWhlsoIZORTZsvjoa D24Q/uvaat2bWRMZiSgvgHM5zaWENefjF3Gaz0uTEpD08jWbTII/rpMZ0GOGk4qWn4v/ M2lQ== X-Gm-Message-State: AHPjjUg9Ln753zeYcLWLumEe2CYFpkh2xcPSBIvWDZQkhjRSH2JMmCXp sKlGMLEVa9FYUHkyXt30vSP49CniSSX2udu69XIiSw== X-Google-Smtp-Source: AOwi7QAEwPU2ypZazhXaU0l34XqJT+WjebQbi1TYmdQJkE351upQ2vOc+/d3qKI7fCrkv5525xeLVRPq5cDjZeduahA= X-Received: by 10.28.58.136 with SMTP id h130mr2132903wma.56.1505470127978; Fri, 15 Sep 2017 03:08:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.130.41 with HTTP; Fri, 15 Sep 2017 03:08:47 -0700 (PDT) In-Reply-To: References: <3D.0C.10715.383F8B95@pb1.pair.com> <20b8b6fa-ec81-eba9-d33b-b54b815e9e5d@lsces.co.uk> <88.FC.19300.2418AB95@pb1.pair.com> <20170914133846.GQ8096@phcomp.co.uk> <1E.C8.19300.EA49BB95@pb1.pair.com> Date: Fri, 15 Sep 2017 13:08:47 +0300 Message-ID: To: Tony Marston Cc: "internals@lists.php.net" Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Deprecate and remove case-insensitive constants? From: narf@devilix.net (Andrey Andreev) Hi again, On Fri, Sep 15, 2017 at 12:46 PM, Tony Marston wrote: > "Andrey Andreev" wrote in message > news:CAPhkiZyXgxi-7vWdqA2hxni9SvycuN_pWOOM8un8mUo5qJ=0jg@mail.gmail.com... >> >> >> Hi, >> >> On Fri, Sep 15, 2017 at 11:51 AM, Tony Marston >> wrote: >>> >>> >>>> Far better that that >>>> problem is taken away from the file system (which should be clean, >>>> robust >>>> and >>>> fast) and if you want case independence put it up at the application >>>> layer. >>> >>> >>> >>> You try telling that to the billions of Windows users who have been used >>> to >>> a case insensitive file system for decades. Not to mention all Microsoft >>> software which is case insensitive. Try to take that away and billions of >>> users will be baying for your blood. >>> >> >> Billions? Do we have that statistic available? > > > How many people in the world work with PCs running Microsoft Windows? More > than those running alternatives. > So you admit that you just made up the number? >> And how many of them have ever encountered case-sensitivity as a concept? > > > None, because they have always used case-insensitive software. > And that will not change, regardless of how PHP constants work. Thus, re-inforcing my point - that you're completely off-topic. >> Do they all manually type-in filenames that they want to open? If so, >> do they for some reason name their files in all upper-case, but then >> type in lower-case while opening? > > > When searching for a file in Windows it is not necessary to now what case it > was created in. When searching for a word in a file it is not necessary to > now what case it was created in. TRy taking that ability away from Windows > users and see what reaction you get. > 1. Search is a feature that goes way beyond case-sensitivity, and that was not what I was (rhetorically) asking. 2. Unless Windows users search for filenames matching constants declared in PHP code, this is irrelevant. >> Also, are we Microsoft developers? Are we trying to change Windows? > > > No, but you are suggesting a change from being consistent with Windows to > being inconsistent. > It *happens* to be consistent; nobody has ever cared about whether it is or not. And I am not suggesting anything. I am simply pointing out the ridiculous false-equivalences you're making. >> And most importantly: How do everyday Windows users have anything to >> do with PHP developers? > > > Some people are also Windows users as well as PHP developers, and if those > people are told that some of the software which they use is now being > switched from being case-insensitive to case-sensitive just because the > programmers cannot solve a small problem which only affects a small number > of character sets, then those people will not be happy. Case-insensitive > software has been around for decades and is regarded by many users as a > feature. It that "feature" is broken in a small number of cases then a > proper programmer would fix that broken feature and not advocate for its > removal just because it is more convenient than developing a fix. > You do realize you just went from comparing "billions" and how supposedly an overwhelming majority would be upset, to "some people". And even within that intersection of audiences, you would never be able to convince anybody here, that for some reason John Doe would declare a constant as FOO, but then use it as Foo. I believe I've made my point. Please stop with the non-sense comparisons, and talk about *constants in PHP*. Cheers, Andrey.