Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34883 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50616 invoked by uid 1010); 23 Jan 2008 07:20:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 50601 invoked from network); 23 Jan 2008 07:20:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jan 2008 07:20:44 -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 64.233.178.244 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: 64.233.178.244 hs-out-0708.google.com Linux 2.4/2.6 Received: from [64.233.178.244] ([64.233.178.244:18856] helo=hs-out-2122.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/98-25953-BCAE6974 for ; Wed, 23 Jan 2008 02:20:43 -0500 Received: by hs-out-2122.google.com with SMTP id l65so2582073hsc.7 for ; Tue, 22 Jan 2008 23:20:40 -0800 (PST) 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=itZVZ1uj8AJvQaKk157QV8z/yOmdhfrFtB+jkaLMuds=; b=ZWo9OzjKQE0wkDQxEFvXFGCv40RneA2IY74LClKnYSVmqD+CM+/hd8H45rNtLoTekVmqx1NYZe2SNuDwRdx3GWeycV4/m8SJ/5RZxork8d0bDijeqpYSnJCsKXJKeEWHs091zimP1ijkSX/dMWphwWj/81GiMX2ZmrPX5zb3S24= 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=ifnTKTQyXkkM8rMRoiGzQKN8+dKB1mxzZRrOroCUwsL8ZwC61Ypk8Hqp7qHtLI6CnogNKoXrq0Fz6FlxM/FEbeZrxA275JS/VIqKMBMpbopKKGkyMjj4HWDIyfAyVpe+ZoY3J8ij4Wc7DwLrmpTfDsbPBTyzcKwBuq9ylXPS/50= Received: by 10.150.156.9 with SMTP id d9mr3361298ybe.48.1201072840775; Tue, 22 Jan 2008 23:20:40 -0800 (PST) Received: by 10.150.52.9 with HTTP; Tue, 22 Jan 2008 23:20:40 -0800 (PST) Message-ID: Date: Wed, 23 Jan 2008 10:20:40 +0300 To: "Antony Dovgal" Cc: php-dev In-Reply-To: <4794AE48.20005@daylessday.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4794AE48.20005@daylessday.org> Subject: Re: [PHP-DEV] why we must get rid of unicode.semantics switch ASAP From: indeyets@gmail.com ("Alexey Zakhlestin") +1 remove switch make unicode strings default On 1/21/08, Antony Dovgal wrote: > > 6 reasons why we must to get rid of The Switch ASAP > ---------------------------------------------------- > 1) it gives users false sense of "compatibility" when no compatibility is even planned; > > 2) it's supposed to mean compatibility, but can be changed only in php.ini, which > means users would still have to maintain 2 versions of their software: > one for On and second for Off. > > 3) 2+ bigger codebase [1] (with lots of duplicates because we have to do > same things in native and unicode modes); > > 4) increases the maintenance costs a lot [2]; > > 5) this is yet another reincarnation of ze1_compatibility switch. > I believe most of the people here agree it was a total failure - untested, unneeded and, > most important, not working thing that complicates user's and developer's lives. > Those who want compatibility may and will stay with PHP5 forever, > those who need Unicode support will use PHP6. > > 6) we need to remove the switch ASAP and make PHP6 Unicode-only before people spend > their time doing useless "compatibility ports" of their applications. > > > --- > [1] http://cvs.php.net/viewvc.cgi/php-src/ext/standard/string.c?revision=1.664&view=markup > Don't click this link if you want to sleep well today. > > [2] Here is a typical problem: http://bugs.php.net/bug.php?id=42861 > Try to fix it without looking at the solution and you'll see what I mean. > > -- > Wbr, > Antony Dovgal > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Alexey Zakhlestin http://blog.milkfarmsoft.com/