Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30194 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19472 invoked by uid 1010); 15 Jun 2007 01:55:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 19457 invoked from network); 15 Jun 2007 01:55:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jun 2007 01:55:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; 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:42591] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 61/F5-09179-B81F1764 for ; Thu, 14 Jun 2007 21:55:25 -0400 Received: from trainburn-lm-corp-yahoo-com.local (62-50-197-220.client.stsn.net [62.50.197.220]) (authenticated bits=0) by mail.lerdorf.com (8.14.1/8.14.1/Debian-4) with ESMTP id l5F1tEPH025741 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 14 Jun 2007 18:55:17 -0700 Message-ID: <4671F184.2020401@lerdorf.com> Date: Fri, 15 Jun 2007 02:55:16 +0100 User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) MIME-Version: 1.0 To: Cristian Rodriguez CC: internals@lists.php.net References: <1181829227.3478.3.camel@localhost.localdomain> <7d5a202f0706141844l3c75b556hdbecbcd5a43747c9@mail.gmail.com> In-Reply-To: <7d5a202f0706141844l3c75b556hdbecbcd5a43747c9@mail.gmail.com> X-Enigmail-Version: 0.95.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.90.3/3424/Thu Jun 14 18:30:29 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) Cristian Rodriguez wrote: > On 6/14/07, Jani Taskinen wrote: > >> I mean, if PHP 6 is about unicode, why upgrade to PHP 6 and disable it? > > I think if unicode.semantics remains PHP_INI_SYSTEM it is useless as > most users ( people that runs in shared hosting servers) will simple > not be able to turn it on, as well hosting companies will keep it off > because turning it on will break applications. > > So, either make it at least PHP_INI_PER_DIR or remove it all togeteher > ( aka.. always behave like unicode.semantics= On) 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. We recognize that some people are simply not going to make the effort to make their apps unicode aware anytime soon and that fact could easily splinter the project across the unicode line. If that unicode line becomes synonymous with PHP 5 vs. PHP 6 we are in trouble. I would much rather have people on the same codebase so we can move everyone ahead on other features and keep the unicode vs. non-unicode battle to a configuration setting within that one codebase. I really don't want to get into the situation where we are backporting features to PHP 5 a couple of years from now. And we obviously did consider making it PER_DIR, but that is really complicated. The current cries that the unicode.semantics check is complicating code are dull compared to what they would be if we allowed a single process to switch back and forth potentially on the same scripts. -Rasmus