Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79847 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83032 invoked from network); 21 Dec 2014 12:57:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Dec 2014 12:57:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.53 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.53 mail-wg0-f53.google.com Received: from [74.125.82.53] ([74.125.82.53:38271] helo=mail-wg0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/31-08160-CC3C6945 for ; Sun, 21 Dec 2014 07:57:48 -0500 Received: by mail-wg0-f53.google.com with SMTP id l18so4724457wgh.26 for ; Sun, 21 Dec 2014 04:57:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type:subject:from:date:to :message-id; bh=xmpsQpzJrNTBmXyc2NxyKwb0cw8Y64wKzpFGytf/BqM=; b=ycLrqe50SVzUwhJNF1ZiGcoksCVPt8LYtmCCISG0s9GeC/2raffCT3tDSxhfryYrX2 y9bvC3ZR9y1nd48JLlseyFpu5Jbvc0XtwTGCFZr4ACZJyOFkgvkHXIl3nLRy7dtNpfDW /CsywspNkykmEdfE+GRdZnzxhkmKsUCrpqsxMSgTJXQIjSVP9JRyRZRX2p0+zkVQuZ9m QQ/JuC/IIcz/ucUqYlZNdMxYVWgfGdhIll0YOx6V/l/91YkNVshHymlRjDeK1r/rmrv5 sV89zWXE1/M3O5zFif05ERYxx9hOQXF/mp3TViUuo5raq5mSmkAWWCItD9gWhS5H67j7 sY9g== X-Received: by 10.180.91.109 with SMTP id cd13mr22362661wib.46.1419166664197; Sun, 21 Dec 2014 04:57:44 -0800 (PST) Received: from [192.168.0.3] (cpc68956-brig15-2-0-cust215.3-3.cable.virginm.net. [82.6.24.216]) by mx.google.com with ESMTPSA id vm8sm19821693wjc.6.2014.12.21.04.57.42 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 21 Dec 2014 04:57:42 -0800 (PST) User-Agent: K-9 Mail for Android In-Reply-To: <20141220224424.GG11370@phcomp.co.uk> References: <000c01d01ca0$7e70c850$7b5258f0$@yahoo.fr> <20141220224424.GG11370@phcomp.co.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Date: Sun, 21 Dec 2014 12:55:38 +0000 To: Alain Williams ,internals@lists.php.net Message-ID: Subject: Re: [PHP-DEV] Proposal for PHP 7 : case-sensitive symbols From: rowan.collins@gmail.com (Rowan Collins) On 20 December 2014 22:44:24 GMT, Alain Williams wrote: >Fixing this would require a lot of work as well as some way of >determining what >character encoding the source file was written in ... different >includes might >have different encodings. > >We recently talked about a way of specifying source file encoding and >decided >that it was not something to look at now (IIRC). I haven't read the whole thread yet, so apologies if someone's mentioned this already, but far from being a rejected feature, specifying source file encoding is already possible, using declare(encoding=...) The problem is what to do with that information: presumably, identifiers would need to be converted to an internal encoding (prob utf8), case folded, and normalised (in the Unicode sense of that term). Ideally, this would happen during compilation and stored appropriately in the OpCache, but a run-time path for userland strings would also be necessary.