Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47217 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31342 invoked from network); 13 Mar 2010 13:48:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Mar 2010 13:48:32 -0000 Authentication-Results: pb1.pair.com header.from=j.boggiano@seld.be; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=j.boggiano@seld.be; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain seld.be designates 74.125.82.170 as permitted sender) X-PHP-List-Original-Sender: j.boggiano@seld.be X-Host-Fingerprint: 74.125.82.170 mail-wy0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:35085] helo=mail-wy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D1/C1-15916-FA79B9B4 for ; Sat, 13 Mar 2010 08:48:32 -0500 Received: by wyb36 with SMTP id 36so214128wyb.29 for ; Sat, 13 Mar 2010 05:48:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.157.212 with SMTP id o62mr36549wek.41.1268488108252; Sat, 13 Mar 2010 05:48:28 -0800 (PST) In-Reply-To: <4B9B7260.1000205@lsces.co.uk> References: <4B9926E8.4080202@lerdorf.com> <7f3ed2c31003120958w7bd41059o88869669c6f5b0d9@mail.gmail.com> <661d85d51003130107o7cf19012m7ce93f0147c7585a@mail.gmail.com> <4B9B7260.1000205@lsces.co.uk> Date: Sat, 13 Mar 2010 14:48:28 +0100 Message-ID: <4bcbf4711003130548h10f6acf1k89a760e1a115686f@mail.gmail.com> To: Lester Caine Cc: PHP Developers Mailing List Content-Type: multipart/mixed; boundary=0016e6563aba1820270481aee70d Subject: Re: [PHP-DEV] PHP 6 From: j.boggiano@seld.be (Jordi Boggiano) --0016e6563aba1820270481aee70d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, Mar 13, 2010 at 12:09 PM, Lester Caine wrote: > It was my understanding that PHP6 was intended to provide international > users with something that they could use in their own native language? > Unicode titled files with unicode titled classes and functions. Please get your facts straight about the current PHP, this is perfectly valid code that runs fine, it contains a russian class name, chinese method name and arabic variable name. class =D1=AE=D1=A0=D1=84 { function =E8=89=BE=E5=BC=97($=D9=80=D8=AC=D9=80=D9=80=D8=AC) { return strtoupper($=D9=80=D8=AC=D9=80=D9=80=D8=AC); } } $obj =3D new =D1=AE=D1=A0=D1=84; echo $obj->=E8=89=BE=E5=BC=97('test'); // outputs TEST I attached a copy of the code in a file in case your mail client doesn't handle unicode as good as php ;) The PHP6 unicode support was to have unicode strings being handled natively by all functions, for example to have strlen() working fine on a UTF-32 encoded string while currently one must use mb_strlen() to get the correct result. Cheers, Jordi --0016e6563aba1820270481aee70d--