Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29448 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25732 invoked by uid 1010); 15 May 2007 18:46:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 25712 invoked from network); 15 May 2007 18:46:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 May 2007 18:46:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=zoe.slattery@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=zoe.slattery@googlemail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 66.249.82.237 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: zoe.slattery@googlemail.com X-Host-Fingerprint: 66.249.82.237 wx-out-0506.google.com Linux 2.4/2.6 Received: from [66.249.82.237] ([66.249.82.237:55076] helo=wx-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A3/0B-39652-1000A464 for ; Tue, 15 May 2007 14:46:27 -0400 Received: by wx-out-0506.google.com with SMTP id i27so2311497wxd for ; Tue, 15 May 2007 11:46:22 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=YRU18A+Fyn8PuaqJZ3DszDuVwxsG8x9RvQCztLWt0j/DtsdOspJ2FV6WXh+U3oOOYJrLMwSm3w9nFddz4awZd0AAIdyE5oM8rA9wYG2lQ2cDZWUvcN3iIIlLVoHCkvm8FY+I9+tDUm4KuYw3BI8x3F31zWKO5CoY0odNG+43bNI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=U5sXDd7469AMCQg8EYA915IMpyMTQFPoMkhrRYgqs4liHO17YzrpwzSpXq6nXKmgr/ohPp+BFJWeBgIifypAl0OQyTmlQBFL0iwhFqhwU5xpR/SmWnQIZ3lE2n6xLZmRxNgnyWvjWIz5Aw5IVshyQFdsUKIqfmVGqaQZmfTpzDo= Received: by 10.70.125.11 with SMTP id x11mr12118918wxc.1179254782750; Tue, 15 May 2007 11:46:22 -0700 (PDT) Received: from ?192.168.1.101? ( [81.146.9.61]) by mx.google.com with ESMTP id i19sm826734wxd.2007.05.15.11.46.19; Tue, 15 May 2007 11:46:22 -0700 (PDT) Message-ID: <4649FFF7.40203@googlemail.com> Date: Tue, 15 May 2007 19:46:15 +0100 User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Derick Rethans CC: internals@lists.php.net, Marcus Boerger , Antony Dovgal References: <4649D4F0.1010202@googlemail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Committing failing tests? From: zoe.slattery@googlemail.com (Zoe Slattery) Derick Rethans wrote: > On Tue, 15 May 2007, Zoe Slattery wrote: > > >> I have some updates that I'd like to make to >> ext/tests/standard/array/range.phpt, the updates work fine with >> unicode.semantics=off but not with unicode.semantics=on. The problem seems to >> be that the warning Notices that are generated are different with unicode on. >> This doesn't look like intentional behaviour but I'm guessing it might well be >> something that isn't implemented yet. >> >> So, my question is - is it reasonable/helpful to add a test in CVS that I know >> will fail if it's in an area that is currently under development? >> > > I would say that it's a good idea to commit those if you are certain > that the "unicode" behavior is wrong. In other cases I suggest to write > a mail to internals about it. > I've looked at this a bit more and have absolutely no idea whether the behaviour that I get is expected or not, it is certainly different. So, here is a very cutdown test case that shows the difference. Note that it's not intended to do anything sensible - I've just pulled it out of a larger test caes that executes range() with all sorts of input. This passes fine on PHP6 with unicode.semantics=off. --TEST-- PHP6 unicode Notices different --FILE-- string(1) "A" } --UEXPECTF-- -- creating an array with low = 'ABCD' and high = 'Array' -- Notice: Array to string conversion in %s on line %d array(1) { [0]=> unicode(1) "A" } Here is the actual output on PHP6 Notice: Array to string conversion in /home/zoe/TESTS/range/ztest.php on line 5 -- creating an array with low = 'ABCD' and high = 'Array' -- Notice: Array to string conversion in /home/zoe/TESTS/range/ztest.php on line 6 array(1) { [0]=> unicode(1) "A" } So. with unicode.semantics=on an additional Notice is generated which appears to be caused by the echo statment. Any ideas? > regards, > Derick > >