diff options
author | Antony Dovgal <tony2001@php.net> | 2008-05-21 13:02:35 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2008-05-21 13:02:35 +0000 |
commit | 19e44a3234d8493765f5ebd55aaadb0a76ba9961 (patch) | |
tree | 8b222cf1cbdb66e817d0ecca23e94eb97f6aea36 | |
parent | 6e8e023eb94de836805cd21820ea921a073b901a (diff) | |
download | php-git-19e44a3234d8493765f5ebd55aaadb0a76ba9961.tar.gz |
fix run-tests.php (Felipe)
-rwxr-xr-x | run-tests.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/run-tests.php b/run-tests.php index b808409678..741ff87792 100755 --- a/run-tests.php +++ b/run-tests.php @@ -920,12 +920,12 @@ function system_with_timeout($commandline, $env = null, $stdin = null) 0 => array('pipe', 'r'), 1 => array('pipe', 'w'), 2 => array('pipe', 'w') - ), $pipes, null, $env, array("suppress_errors" => true)); + ), $pipes, null, $env, array("suppress_errors" => true, "binary_pipes" => true)); if (!$proc) return false; - if (is_string($stdin)) { + if (!is_null($stdin)) { fwrite($pipes[0], $stdin); } fclose($pipes[0]); @@ -1655,7 +1655,7 @@ COMMAND $cmd $wanted = trim($section_text['EXPECT']); if ($unicode_semantics && is_unicode($wanted)) { /* workaround until preg_replace() or str_replace() are upgraded */ - $wanted = unicode_encode($wanted, ini_get('unicode.output_encoding')); + $wanted = unicode_encode($wanted, ini_get('unicode.output_encoding') ?: 'utf-8'); } $wanted = preg_replace('/\r\n/',"\n",$wanted); show_file_block('exp', $wanted); |