Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60243 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28667 invoked from network); 20 Apr 2012 18:47:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Apr 2012 18:47:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=theanomaly.is@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=theanomaly.is@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: theanomaly.is@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:56345] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 29/7A-63732-D4FA19F4 for ; Fri, 20 Apr 2012 14:47:41 -0400 Received: by lbbgh12 with SMTP id gh12so2461200lbb.29 for ; Fri, 20 Apr 2012 11:47:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=wiU/7wxo/hYfxGfhO59zhyfNzqWvTYExeugUZ1kwIS0=; b=G2eBF16/V47RNCQmgOq026nfT5RjM9VPrqyVI7FNXvsMeciVuvygK0qxy+WioUqoTa 3vI0bEMYkjBONKHTU/dh2GQlDj1uEbKhWovO1R2EX2jj4qDzjTo+PCwIP7E1fvF29BYj 4p1wIKglUYaW8HzHOq7gIKPe33/mjwG94H0Tm7LMPzz1sZn9tnyUGq82UI4Mj+rs8wzw g6OyPLL0ngXKYU+9i3nosjmnE+K84W2pLI/h7ZeaXQ6Dr9gkrPVCBCZNtdAnVwUaN1cp J+xkJ848fnzsDhGtA8XkVVHfuACMrhXiiXrxwboGKBBWUB9FBz2iHmAVFlhbSPHeBotL KF4w== MIME-Version: 1.0 Received: by 10.152.147.100 with SMTP id tj4mr6831306lab.39.1334947658423; Fri, 20 Apr 2012 11:47:38 -0700 (PDT) Received: by 10.112.100.227 with HTTP; Fri, 20 Apr 2012 11:47:38 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 Apr 2012 14:47:38 -0400 Message-ID: To: Kris Craig Cc: John LeSueur , Arvids Godjuks , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Complete case-sensitivity in PHP From: theanomaly.is@gmail.com (Sherif Ramadan) > Could you elaborate? =A0Aside from making PHP forgiving of typos and over= all > laziness on the part of the coder, and of course BC notwithstanding, I'm = not > sure I understand what benefit there is to preserving this inconsistent > behavior. > Kris, Sorry, first to be clear I made a typo there, but what I'm saying is PHP currently doesn't care if you do the following: However, it does care if you do the following: I'm not saying I'm in favor of making PHP case-insensitive. I think it's fine that it is case-sensitive since it deals with mostly everything on a binary level. I think the fact that it currently does allow ASCII case-insensitivity for method/function/class/(and partially constant) names is somewhat confusing though. It should probably be either all case-sensitive or not. As you can argue that there seems to be little reasoning behind wanting $foo and $FOO to be two different things, but hey that's the arguable part. I can't see much reason to breaking any of this now though. I don't know about others, but I've rarely ever written or worked with PHP code where function/method names were in anything other than ASCII and me or anyone else cared about case-sensitivity there. I say it's fine the way it is and I don't really see anyone presenting a valid use case for why it should change. Just my two cents.