Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79831 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33738 invoked from network); 21 Dec 2014 00:20:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Dec 2014 00:20:41 -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.223.173 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.223.173 mail-ie0-f173.google.com Received: from [209.85.223.173] ([209.85.223.173:58675] helo=mail-ie0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B9/20-32072-85216945 for ; Sat, 20 Dec 2014 19:20:40 -0500 Received: by mail-ie0-f173.google.com with SMTP id y20so2683243ier.32 for ; Sat, 20 Dec 2014 16:20: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=QMzI5hb3nLpYW68xi/5JkLjYMf6Ajyctmi+dAtaARGI=; b=R1bUC4l9G1O5v/qNcArDAzYYjA9jdt6EtYh8vKE0TxcajoP6VObxrNXNWBpVGy0LsT NJHSr4kC/BEMc1ufL3nLhTWaKH7R5EjTmG3mOwti6P0rLUpX3Jzrf3DTuawVAM/0nbkt blpj2nwxEvXnuutfjyf/xdlcBwdj81sJzLM8Vt9Esatqn6v5hgX2t+BHNcrqBCCHFxrL nD/VI+o+H3vAUlRVfcPt6zTEdpqgA1tAjJEhgmJ1fZ33cLU0459E6cah+7coX3IiN0az q2+CGeUguBYMnCZS9Y5A+J47Zk/QT8LHd7AkOBvsr8Tzc/lnEDqznHaMDQu553jycH4z 6XPw== X-Received: by 10.107.26.8 with SMTP id a8mr14167881ioa.58.1419121237177; Sat, 20 Dec 2014 16:20:37 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.107.164.217 with HTTP; Sat, 20 Dec 2014 16:19:55 -0800 (PST) In-Reply-To: <000c01d01ca0$7e70c850$7b5258f0$@yahoo.fr> References: <000c01d01ca0$7e70c850$7b5258f0$@yahoo.fr> Date: Sun, 21 Dec 2014 09:19:55 +0900 X-Google-Sender-Auth: PDPiFfV_gX1XOXofFlcZgzGclsM Message-ID: To: nf.laupretre@yahoo.fr Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a113fd6463c3b26050aaee967 Subject: Re: [PHP-DEV] Proposal for PHP 7 : case-sensitive symbols From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a113fd6463c3b26050aaee967 Content-Type: text/plain; charset=UTF-8 Hi all, On Sun, Dec 21, 2014 at 7:01 AM, F & N Laupretre wrote: > 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. > Defining thisismyfunction() {} then call it THISisMYFunction() is not recommended at all. Keeping not recommended spec forever is not a good idea. IMHO. Using strtolower() all over place in the Engine to keep running not recommended code does not make much sense. It's BC, but it would be easy spot it by an compatibility check script. Once case is used properly, scripts run both new and old PHP. Therefore, BC issue is not critical. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a113fd6463c3b26050aaee967--