# run-tests broken in HEAD

- Thread: https://externals.io/message/38101
- Original archive: https://news-web.php.net/php.internals/38101
- Started by Stanislav Malyshev on 2008-06-08T11:56:51+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #38101 — Stanislav Malyshev — 2008-06-08T11:56:51+00:00

URL: https://externals.io/message/38101#38101

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

---

## #38102 — Steph Fox — 2008-06-08T12:05:43+00:00

URL: https://externals.io/message/38101#38102 · In reply to: #38101

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
