Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60239 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11853 invoked from network); 20 Apr 2012 15:45:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Apr 2012 15:45:02 -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:43399] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DF/18-63732-D74819F4 for ; Fri, 20 Apr 2012 11:45:02 -0400 Received: by lbbgh12 with SMTP id gh12so2327978lbb.29 for ; Fri, 20 Apr 2012 08:44:58 -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; bh=1734Q8DtTkipg4C45BVVRk2V/OnSqMpITtsiIF+4xn4=; b=D8H8j59yz/JrNE/fOuMJsVIMI6L32IEfAmbrReB8MlNoZHRoqg+M6Kq7UUgQs9Dpnu U/8HJvW4XUY0MRAEwxQg4YlhDY6fk4gG791jYtwqMZtIrdPxHInOz52dCtUZ8yon8vOP EN6oZUS6G5pyAE4jq/k+bbADQ8pGHfE7olF9eUO44v5kPaXahFIUS4nTB7vy/dUWyJZS BeeXi9f+SkBWduoLRbUX8uTTR6z7wZiRazRhDOZfDX2haS42nx9cIeSrLccaHWKm0deV 8VTsdtNoDmVoUJ5xyZYPSyxFBKStDH0zdg5OWXxMnfFy+M26tAWAx+q7S/YOLUmLMyYU xDvw== MIME-Version: 1.0 Received: by 10.152.147.100 with SMTP id tj4mr6284963lab.39.1334936698857; Fri, 20 Apr 2012 08:44:58 -0700 (PDT) Received: by 10.112.100.227 with HTTP; Fri, 20 Apr 2012 08:44:58 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 Apr 2012 11:44:58 -0400 Message-ID: To: John LeSueur Cc: Arvids Godjuks , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Complete case-sensitivity in PHP From: theanomaly.is@gmail.com (Sherif Ramadan) > But in order to be case insensitive, PHP needs to know that strtolower("A") > == 'a'. So if you use Cyrilic for userland functions/classes, php needs a > cyrillic aware strtolower function. Then the problem is that core > classes/functions need to use a plain ASCII strtolower for case > insensitivity. So you cannot both write code in cyrillic and interface with > plain ASCII internals. One possible, but less than optimal solution is to > first try a locale aware strtolower, then try a plain ascii strtolower when > looking up symbols. > > John I can see the confusion about PHP's case-sensitivity and how it mixes and matches between case-insensitive functions/classes/(arguably even constants), and case-sensitive variable names, for example. Its naming rules are a little bit inconsistent in that regard. I just don't see a point in making it completely locale aware. The fact that you can do soefunc() and SOMEFUNC() and still invoke the same function is a benefit. And I suppose for those using UTF-8 encoded function names it might be convenient to make them case-sensitive as well. I'm not going to argue that it's not. I'm just going to say that it doesn't seem to be a significant problem.