Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37701 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27561 invoked from network); 18 May 2008 13:53:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 May 2008 13:53:02 -0000 Authentication-Results: pb1.pair.com header.from=steph@zend.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=steph@zend.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain zend.com does not designate 64.97.136.171 as permitted sender) X-PHP-List-Original-Sender: steph@zend.com X-Host-Fingerprint: 64.97.136.171 smtpout0171.sc1.he.tucows.com Solaris 8 (1) Received: from [64.97.136.171] ([64.97.136.171:57714] helo=n068.sc1.he.tucows.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EC/79-57662-CB430384 for ; Sun, 18 May 2008 09:53:01 -0400 Received: from sc1-out02.emaildefenseservice.com (64.97.139.2) by n068.sc1.he.tucows.com (7.2.069.1) id 4769316E014F92E5; Sun, 18 May 2008 13:52:50 +0000 X-SpamScore: 2 X-Spamcatcher-Summary: 2,0,0,fd071698d0461f0c,72d2e8112d74e778,steph@zend.com,-,RULES_HIT:152:355:379:539:540:541:542:543:567:599:601:945:967:973:980:982: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:2525:2559:2563:2682:2685:2827:2857:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3027:3353:3622:3865:3866:3867:3868:3869:3870:3871:3872:3874:3934:3936:3938:3941:3944:3947:3950: 4250:4321:4362:4886:5007:6117:6119:6261:7679:7862:7875,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-130-56-54.range86-130.btcentralplus.com [86.130.56.54]) (Authenticated sender: steph.fox) by sc1-out02.emaildefenseservice.com (Postfix) with ESMTP; Sun, 18 May 2008 13:52:49 +0000 (UTC) Message-ID: <004f01c8b8ee$9f8f1220$4001a8c0@foxbox> Reply-To: "Steph Fox" To: =?UTF-8?Q?Johannes_Schl=C3=BCter?= Cc: "internals" References: <01b101c8b5c2$66718e20$4001a8c0@foxbox> <1210779138.2986.2.camel@goldfinger> Date: Sun, 18 May 2008 14:53:55 +0100 Organization: Zend Technologies MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 8bit 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] Re: unicode.semantics ad infinitum From: steph@zend.com ("Steph Fox") Hi all, > On Wed, 2008-05-14 at 13:59 +0100, "Steph Fox" wrote: >> I wrote a macro to allow us to use the same code for the extension in >> both >> branches, but it occurs to me that the zstr union definition might change >> or >> even disappear when PHP 6 becomes Unicode-only. Is that likely? I don't >> know. So keeping it all together is total guesswork at present. > > In general: No. We still need both string types at most places, the > effect of the u.s setting is the default type for strings in the engine. > Most other functions still need to work with both kinds of string as > parameter and such. (strlen(b"äöü") vs. atrlen(u"äöü")) Thanks for that Johannes, done. Next question: should we gear our tests to unicode.semantics=off (thereby making us look good on current gcov) or unicode.semantics=on (thereby saving extra work in the not-so-distant future)? I've found a couple of minor things that could prevent phars created under 5_3 from running under 6 with unicode on. They're easily fixable in 5_3, but I have to say that optimizing for unicode=off wouldn't have uncovered these. Another question - when the unicode.semantics switch goes (and please, please make it soon someone), the PHP 5 test suite script works fine as-is with PHP 6. The one currently in HEAD is probably a bit too clever, trying to accommodate both scenarios and failing - unicode=on can't be tested at present with that script. So can we revert to the run-tests.php from 5_3 branch please? Thanks, - Steph > > johannes > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >