Re: Committing failing tests?
| From: | Antony Dovgal | Date: | Thu, 17 May 2007 17:34:42 +0000 |
| Subject: | Re: Committing failing tests? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-29494@lists.php.net to get a copy of this message | ||
Fixed, thanks for the heads up.
On 15.05.2007 22:46, Zoe Slattery wrote:
--TEST-- PHP6 unicode Notices different --FILE-- <?php $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