Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34871 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70600 invoked by uid 1010); 22 Jan 2008 04:23:03 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 70585 invoked from network); 22 Jan 2008 04:23:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jan 2008 04:23:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=andrei@gravitonic.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=andrei@gravitonic.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain gravitonic.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: andrei@gravitonic.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:53273] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C2/30-64254-6AF65974 for ; Mon, 21 Jan 2008 23:23:02 -0500 Received: from [192.168.11.21] (c-71-202-45-81.hsd1.ca.comcast.net [71.202.45.81]) (authenticated bits=0) by mail.lerdorf.com (8.14.2/8.14.2/Debian-2) with ESMTP id m0M4MsL5029167; Mon, 21 Jan 2008 20:22:54 -0800 In-Reply-To: <698DE66518E7CA45812BD18E807866CE0124CA73@us-ex1.zend.net> References: <698DE66518E7CA45812BD18E807866CE0124CA03@us-ex1.zend.net> <005901c85c91$590963a0$c6fc1f3e@foxbox> <479544F0.4060608@zend.com> <007701c85c96$585a45a0$c6fc1f3e@foxbox> <698DE66518E7CA45812BD18E807866CE0124CA73@us-ex1.zend.net> Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: Cc: "Steph Fox" , "Stas Malyshev" , "Antony Dovgal" , Content-Transfer-Encoding: 7bit Date: Mon, 21 Jan 2008 20:22:53 -0800 To: Andi Gutmans X-Mailer: Apple Mail (2.753) X-Virus-Scanned: ClamAV 0.92/5515/Mon Jan 21 15:03:56 2008 on colo.lerdorf.com X-Virus-Status: Clean Subject: Re: [PHP-DEV] why we must get rid of unicode.semantics switch ASAP From: andrei@gravitonic.com (Andrei Zmievski) On Jan 21, 2008, at 7:14 PM, Andi Gutmans wrote: > I see I may not have been clear in my previous email. > > Indeed as Stas mentioned I agree we should not have a php.ini > switch, i.e. unicode.semantics goes away. > > At the same time I propose: > a) We invest considerable energy in figuring out and documenting > the migration path. > b) We build automated migration scripts when possible (like we did > in PHP/FI 2 -> PHP 3 ) to make the migration easier. > c) We keep an open mind regarding some areas which could make it > easier to adopt especially when the net benefits only affect a > smaller audience or audiences which already today are used to > working harder with various languages (e.g. fgets() returning > IS_STRING by default, "foo" produces IS_STRING, and u"foo" produces > IS_UNICODE, ...). These are just examples and I think reality will > depend on (a). a) - Absolutely b) - Absolutely c) - I really, really, really, really x 100 do not believe that binary strings should be the default and that Unicode strings need explicit syntax. I've written about this many times before, so I won't reiterate, but please let's be progressive in this area. Even Python is moving towards Unicode strings being the default. -Andrei