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
[EMAIL PROTECTED] http://www.zend.com/
(408)253-8829 MSN: [EMAIL PROTECTED]
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php