Hi!
Tried today to work on some tests and discovered that run-tests is not
binary-safe in php 6 - it can not process arbitrary outputs. Consider
this test:
--TEST--
Test
--FILE--
<?php
$a = b"\xD0";
var_dump($a);
--EXPECT--
string(1) ""
It should not pass - output string is wrong - but instead of failing
correctly, the run-tests script itself produces these errors:
TEST:N 1/2 [t0.phpt]
Warning: Could not convert binary string to Unicode string (converter
UTF-8 failed on bytes (0xD0) at offset 0) in /root/php6/run-tests.php on
line 952
PASS:N Test [t0.phpt]
TEST:U 2/2 [t0.phpt]
Warning: Could not convert binary string to Unicode string (converter
UTF-8 failed on bytes (0xD0) at offset 0) in /root/php6/run-tests.php on
line 952
PASS:U Test [t0.phpt]
I think this needs to be fixed.
Stanislav Malyshev, Zend Software Architect
stas@zend.com http://www.zend.com/
(408)253-8829 MSN: stas@zend.com
Hi Stas,
Tried today to work on some tests and discovered that run-tests is not
binary-safe in php 6 - it can not process arbitrary outputs. Consider this
test:
Oh good, that makes 5 people who are interested in CVS HEAD. Can we please
make it Unicode-only now so that we can actually work on it?
Thanks,
- Steph