Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81084 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77942 invoked from network); 24 Jan 2015 17:23:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jan 2015 17:23:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.181 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.181 mail-qc0-f181.google.com Received: from [209.85.216.181] ([209.85.216.181:63793] helo=mail-qc0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D5/84-49997-B15D3C45 for ; Sat, 24 Jan 2015 12:23:40 -0500 Received: by mail-qc0-f181.google.com with SMTP id l6so2065322qcy.12 for ; Sat, 24 Jan 2015 09:23:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=mXVawUHBkt8zOwQDZYWH9vlXPqYQkZHTn3CiFaBrI7E=; b=Mng/eKVlcTIvsYoMdEkM7hShU61b6w9xSrgjMrnIlzAXdXQbD6yLUEvYxh32iypUb3 avg1M3pVBcdlUONaA6IsoK1wxU1dNdRJcQ2FC2EMtdUcjk5mvjUptHytbZ61OV/OcuZZ ch5NIvLNJjzgeEMRHvSx1eI3XxUs9z5uDn23OHpNF3p7HS9zMG+NzDnTBx5UjZDcrbMD nfsHFGqEHipbDjKfp3/TWauH0xl0R5RGbwpNNWK2fom18CYKYC/gn5TnXaVh9sw0CESP I8qqZzi/gy7yaMf4IzQqOq2B06csYGVKutubxZabGBXFmowzN91HEhH4AZgG/T/VLEqR ynDw== X-Received: by 10.140.109.164 with SMTP id l33mr24689895qgf.91.1422120217296; Sat, 24 Jan 2015 09:23:37 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.93.70 with HTTP; Sat, 24 Jan 2015 09:22:56 -0800 (PST) In-Reply-To: <000c01d01ca0$7e70c850$7b5258f0$@yahoo.fr> References: <000c01d01ca0$7e70c850$7b5258f0$@yahoo.fr> Date: Sun, 25 Jan 2015 02:22:56 +0900 X-Google-Sender-Auth: 6gzfKwo30diUI-0A7W_VmwQo6cw Message-ID: To: "nf.laupretre@yahoo.fr" Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a113a304e6160a2050d692a04 Subject: Re: [PHP-DEV] Proposal for PHP 7 : case-sensitive symbols From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a113a304e6160a2050d692a04 Content-Type: text/plain; charset=UTF-8 Hi all, On Sun, Dec 21, 2014 at 7:01 AM, F & N Laupretre wrote: > I don't know if this was discussed before. So, tell me what you think > before > I write an RFC. > > > > I would like to propose that namespaces, functions, and classes become > case-sensitive (constants are already case-sensitive). Actually, I never > understood why they are case-insensitive. Even if the performance gain is > negligible, I think it could be the right time to question this. > I'm writing this mail without reading current zend code. Anyway, is it feasible to raise E_DEPRECATE without much performance penalty? For example, if (!strcmp(name, name_to_be_searched)) { do_something; } else if (!strcasecmp(name, name_to_be_searched) { rase_error; do_something; } Duplicated codes may be removed by macro. strcasecmp() checks may be removed 10 years later or more. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a113a304e6160a2050d692a04--