Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30252 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87314 invoked by uid 1010); 19 Jun 2007 14:27:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 87299 invoked from network); 19 Jun 2007 14:27:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jun 2007 14:27:02 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:43943] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7E/B5-47650-4B7E7764 for ; Tue, 19 Jun 2007 10:27:01 -0400 Received: from trainburn-lm-corp-yahoo-com.local (c-24-6-22-164.hsd1.ca.comcast.net [24.6.22.164]) (authenticated bits=0) by mail.lerdorf.com (8.14.1/8.14.1/Debian-4) with ESMTP id l5JEQtGa011935 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 19 Jun 2007 07:26:56 -0700 Message-ID: <4677E7B1.2080305@lerdorf.com> Date: Tue, 19 Jun 2007 07:26:57 -0700 User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) MIME-Version: 1.0 To: Peter Brodersen CC: internals@lists.php.net References: <1181829227.3478.3.camel@localhost.localdomain> <7d5a202f0706141844l3c75b556hdbecbcd5a43747c9@mail.gmail.com> <4671F184.2020401@lerdorf.com> <6sof73dj69ldpspfc5ukrc58qr9ckbin2b@4ax.com> In-Reply-To: <6sof73dj69ldpspfc5ukrc58qr9ckbin2b@4ax.com> X-Enigmail-Version: 0.95.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.90.3/3466/Mon Jun 18 23:21:58 2007 on colo.lerdorf.com X-Virus-Status: Clean Subject: Re: [PHP-DEV] What is the use of "unicode.semantics" in PHP 6? From: rasmus@lerdorf.com (Rasmus Lerdorf) Peter Brodersen wrote: > On Fri, 15 Jun 2007 02:55:16 +0100, in php.internals > rasmus@lerdorf.com (Rasmus Lerdorf) wrote: > >> Those same shared hosting companies would never upgrade to PHP 6 if we >> forced unicode semantics on them breaking legacy apps and that would >> force us to maintain PHP 5 forever. > > On the other hand I feel a bit sad that if I want to write perfectly > good portable PHP 6 code that is only intended to work under PHP 6 I > still have to check for different configuration settings. > > I think we were really close to get out of the > if(get_magic_quotes_gpc()) "requirement" but now it has been replaced > with a new one. Even if a developer would write (portable) PHP 6 only > code. > > > Of course, configurations could contain a lot of other obscure > settings that might have influence on the script but none as > widespread as the difference in magic_quotes settings. But this is no different from writing code that will work on both PHP 5 and PHP 6. The only difference is that instead of checking for PHP 5 you will be checking for Unicode. Like I said, we don't want the Unicode decision to be synonymous with PHP 5 vs. PHP 6 because then the non-Unicode folks will never get the benefits of the non-Unicode improvements in PHP 6 and we would be forced to support PHP 5 for a lot longer. We really stretch our already thing resources in order to support multiple branches, so anything we can do to get as many people as possible onto the same codebase helps us a lot. -Rasmus