Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30905 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78588 invoked by uid 1010); 14 Jul 2007 06:43:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 78573 invoked from network); 14 Jul 2007 06:43:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jul 2007 06:43:04 -0000 Authentication-Results: pb1.pair.com header.from=larry@garfieldtech.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=larry@garfieldtech.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain garfieldtech.com from 204.127.225.95 cause and error) X-PHP-List-Original-Sender: larry@garfieldtech.com X-Host-Fingerprint: 204.127.225.95 alnrmhc15.comcast.net Solaris 10 1203 Received: from [204.127.225.95] ([204.127.225.95:57671] helo=alnrmhc15.comcast.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E0/8D-11631-67078964 for ; Sat, 14 Jul 2007 02:43:03 -0400 Received: from earth.ufp (c-71-228-13-89.hsd1.il.comcast.net[71.228.13.89]) by comcast.net (alnrmhc15) with ESMTP id <20070714064259b15000nj2ee>; Sat, 14 Jul 2007 06:42:59 +0000 Received: from localhost (localhost [127.0.0.1]) by earth.ufp (Postfix) with ESMTP id A025ED814B for ; Sat, 14 Jul 2007 01:42:59 -0500 (CDT) Received: from earth.ufp ([127.0.0.1]) by localhost (earth.ufp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ygyeRu1Wmb8q for ; Sat, 14 Jul 2007 01:42:59 -0500 (CDT) Received: from vulcan.ufp (vulcan.ufp [192.168.42.4]) by earth.ufp (Postfix) with ESMTP id 251BED7C65 for ; Sat, 14 Jul 2007 01:42:49 -0500 (CDT) To: internals@lists.php.net Date: Sat, 14 Jul 2007 01:42:45 -0500 User-Agent: KMail/1.9.6 References: <4697D3EA.2090201@zend.com> <2166.24.1.37.132.1184392999.squirrel@www.l-i-e.com> <46986ACD.2030702@zend.com> In-Reply-To: <46986ACD.2030702@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200707140142.45543.larry@garfieldtech.com> Subject: Re: [PHP-DEV] PHP ICU project announcement From: larry@garfieldtech.com (Larry Garfield) On Saturday 14 July 2007, Stanislav Malyshev wrote: > > So now there's going to be a PHP-ICU extension for PHP 5 and PHP 6, > > and PHP 6 will have ICU built-in to such an extent that it's backwards > > compatible with PHP 5? > > Both extensions would be (are being) written in such a way that code > that worked on PHP 5 would work on PHP 6, with regard to the extension. > Of course, particular code still could fail for some other reason, not > related to the ICU extension. I.e. if you call collator_sort($foo, > $bar), collator_sort being ICU extension function, it would mean the > same in PHP 5 and PHP 6. > > > And what in the world would you do with PHP-ICU extension in PHP 6? > > I mean, unless you've type-casted a string to binary or whatever, it's > > already ICU, no?... > > I think you are confusing UTF-16 and ICU. ICU is a huge library of > Unicode text functions, which so far weren't supported in PHP except for > some collation support. There's a lot of functions to add there. UTF-16 > is just a way to represent text in bits (and ICU uses it, and so does > PHP 6). The extension would expose a part of ICU functionality to PHP > users - such as collators, formatters, resources, etc. So (from another character-set-intricacy-challenged individual), would ICU it be analogous to the DOM functions for manipulating XML-like structures? (The methods parentNode(), childNodes(), appendNode(), etc. are all supposed to mean the same thing in every language.) -- Larry Garfield AIM: LOLG42 larry@garfieldtech.com ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson