Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37437 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15247 invoked from network); 4 May 2008 16:52:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 May 2008 16:52:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.46.29 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 74.125.46.29 yw-out-2324.google.com Received: from [74.125.46.29] ([74.125.46.29:7941] helo=yw-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/CB-43080-6B9ED184 for ; Sun, 04 May 2008 12:52:06 -0400 Received: by yw-out-2324.google.com with SMTP id 9so305643ywe.83 for ; Sun, 04 May 2008 09:52:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=9778Vax+ycBIQy4ZvSzbEuYFHGDlwHdfWOdxSETpbpg=; b=vS4ViY7wQHJn3aM1IkGiB5WYzG22VLgFSE1dNxR9tvccXu6+iz1s6xw5WmyoV5AYD39IrdEAY64Nxy3tBirEaHIy+uMWSM1S/xNnEjSule7226p5mu59Te+FjRPATDbljM17pa4aBOt1PuDNLBJ6HP970ldNTSbehcpA5xDWd5I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qhbDOV5pfgK30RNTogPk9+R0iA5IwMxDHpnlYFuF9k6dOwVV0ImPWos9/yGGTe1fD1Z521CoiB7vJn3cQvKAPmOuXoZTL6ArZSiV75C1xsNb1KV2EqbYfRRc0ILHeVu3wwSa5+YZPyWStprKX7KEmQWlXDiG4fnXE/qgSebvl78= Received: by 10.150.84.10 with SMTP id h10mr5295159ybb.208.1209919923728; Sun, 04 May 2008 09:52:03 -0700 (PDT) Received: by 10.150.158.8 with HTTP; Sun, 4 May 2008 09:52:03 -0700 (PDT) Message-ID: Date: Sun, 4 May 2008 20:52:03 +0400 To: "Tomas Kuliavas" Cc: internals@lists.php.net In-Reply-To: <48988.78.61.224.253.1209918881.nsm@avilys.eik.lt> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4BD5A050-02F2-46BD-B867-FA8CA12FF1BD@macvicar.net> <48988.78.61.224.253.1209918881.nsm@avilys.eik.lt> Subject: Re: [PHP-DEV] Removal of unicode_semantics From: indeyets@gmail.com ("Alexey Zakhlestin") On Sun, May 4, 2008 at 8:34 PM, Tomas Kuliavas wrote: > > We've discussed this a few times in the past and it's time to make a > > final decision about its removal. > > > > I think most people have agreed that this is the way forward but no > > one has produced a patch. I have a student working on unicode > > conversion for the Google Summer of Code and this would help make it > > simpler. > > unicode_semantics=on breaks backwards compatibility in scripts that have > implemented multiple character set support in current PHP setups. > > If setting is removed, instead of maintaining at least some bits of > backwards compatibility and doing some additional work, you force massive > code rewrites in scripts that depend on working charset support and more > work for people, who use interpreter. > > Every time somebody proposes removal of this setting, they claim that > majority agreed on it when there is no agreement on anything. People only > defended own positions and we had other flame about unicode_semantics. It's the lesser of two evils. If the switch stays there, every future-author of libraries/frameworks will have to maintain 2 separate code-bases (one for unicode_semantics=off, other for unicode_semantics=on). On the other hand, 1 year from now it would be safe to require 5.2.1 as a minimal supported version of php, which will allow you to mark all the strings as "binary", which will lead to eaier migration to php-6 -- Alexey Zakhlestin http://blog.milkfarmsoft.com/