Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29494 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16007 invoked by uid 1010); 17 May 2007 17:34:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 15992 invoked from network); 17 May 2007 17:34:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 May 2007 17:34:48 -0000 Authentication-Results: pb1.pair.com header.from=antony@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=antony@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: antony@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from [212.25.124.162] ([212.25.124.162:9328] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BD/ED-10325-6329C464 for ; Thu, 17 May 2007 13:34:48 -0400 Received: (qmail 6528 invoked from network); 17 May 2007 17:34:44 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 17 May 2007 17:34:44 -0000 Message-ID: <464C9232.7050208@zend.com> Date: Thu, 17 May 2007 21:34:42 +0400 User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: Zoe Slattery CC: Derick Rethans , internals@lists.php.net, Marcus Boerger References: <4649D4F0.1010202@googlemail.com> <4649FFF7.40203@googlemail.com> In-Reply-To: <4649FFF7.40203@googlemail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Committing failing tests? From: antony@zend.com (Antony Dovgal) Fixed, thanks for the heads up. On 15.05.2007 22:46, Zoe Slattery wrote: > --TEST-- > PHP6 unicode Notices different > --FILE-- > $low_arr = "ABCD"; > $high_arr = array(1,2); > > echo "\n-- creating an array with low = '$low_arr' and high = > '$high_arr' --\n"; > var_dump( range( $low_arr, $high_arr ) ); > > --EXPECTF-- > > -- creating an array with low = 'ABCD' and high = 'Array' -- > > Notice: Array to string conversion in %s on line %d > array(1) { > [0]=> > 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? -- Wbr, Antony Dovgal