Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37794 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88071 invoked from network); 22 May 2008 10:25:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 May 2008 10:25:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=steph@zend.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=steph@zend.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain zend.com does not designate 64.97.136.162 as permitted sender) X-PHP-List-Original-Sender: steph@zend.com X-Host-Fingerprint: 64.97.136.162 smtpout0162.sc1.he.tucows.com Solaris 8 (1) Received: from [64.97.136.162] ([64.97.136.162:41714] helo=n064.sc1.he.tucows.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 07/56-53818-52A45384 for ; Thu, 22 May 2008 06:25:42 -0400 Received: from sc1-out04.emaildefenseservice.com (64.97.139.2) by n064.sc1.he.tucows.com (7.2.069.1) id 476977050152925E; Thu, 22 May 2008 10:25:36 +0000 X-SpamScore: 2 X-Spamcatcher-Summary: 2,0,0,b802ed52171f12de,cfc06c81b00088e0,steph@zend.com,-,RULES_HIT:152:355:379:539:540:541:542:543:567:599:601:945:973:988:989:1155:1156:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1541:1587:1593:1594:1676:1711:1730:1747:1766:1792:2073:2075:2078:2379:2393:2559:2562:3027:3352:3622:3865:3867:3868:3869:3871:3872:3873:3874:4250:5007:6119:6261:7875:7903,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL: none,DNSBL:none,TSO:0 X-Spamcatcher-Explanation: Received: from foxbox (host86-137-246-48.range86-137.btcentralplus.com [86.137.246.48]) (Authenticated sender: steph.fox) by sc1-out04.emaildefenseservice.com (Postfix) with ESMTP; Thu, 22 May 2008 10:25:34 +0000 (UTC) Message-ID: <001501c8bbf6$5702cf50$4401a8c0@foxbox> Reply-To: "Steph Fox" To: "Andrei Zmievski" Cc: "Antony Dovgal" , References: <7d6e34d80805191240k64cb1ba6k3e8f7a50ddf068c@mail.gmail.com> <4831F27B.7030001@suse.de> <296949B4-D328-49FE-968B-4942B28FE869@pooteeweet.org> <7d6e34d80805191454m69614624v7a05037fa947328e@mail.gmail.com> <698DE66518E7CA45812BD18E807866CE019F60DE@us-ex1.zend.net> <34.64.28995.1BE23384@pb1.pair.com> <02e701c8bab7$19a3dd10$4401a8c0@foxbox> <4833FD5B.2010308@daylessday.org> <003f01c8bb33$81ae5030$4401a8c0@foxbox> <48346ED3.9040505@gravitonic.com> Date: Thu, 22 May 2008 11:26:44 +0100 Organization: Zend Technologies MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum] From: steph@zend.com ("Steph Fox") Hey Andrei, > UG(unicode) checks are still secondary I think - they don't prevent us > from doing tests and moving forward, although cleaning them up would be > nice. Cleaning them up would make it possible to find and fix the bugs we already know are there ;) There don't seem to be too many, but when it comes to tracking down conversions... bleh... > pack() should take binary strings only, methinks. It does - 'UG(ascii_conv)' - but sometimes there's a unicode-to-binary conversion warning thrown by that, and then you have to cast the variable to a binary empty string to suppress the warning before you assign the pack() result to it. (See ext/phar/tests/phar_test.inc.) There are similar issues with unpack(), and with fwrite()/fread() and friends when dealing with a purely binary string. What concerns me at this point is that we could and should be telling PHP users how to future-proof their code during the move from PHP 4 to PHP 5. If we can get a fix on that now and get word out, we'll have made their future migration path *much* smoother. - Steph