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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to