From c2660ef64aad441c10e120e80cd5b37790be8b94 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Sat, 17 May 2003 20:00:46 +0000 Subject: [PATCH] Fixed the test so it won't fail under safe mode --- ext/standard/tests/file/bug22414.phpt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ext/standard/tests/file/bug22414.phpt b/ext/standard/tests/file/bug22414.phpt index 929c648e5d..b27e805737 100644 --- a/ext/standard/tests/file/bug22414.phpt +++ b/ext/standard/tests/file/bug22414.phpt @@ -7,11 +7,11 @@ Bug #22414: passthru() does not read data correctly } ?> --INI-- -output_handler= +output_handler=a --FILE-- ' . $pwd . '/passthru_test'; + $cmd = $php . ' -r \' passthru("'.$cmd.'"); \' > '.$tmpfile ; exec($cmd); - if (md5_file($php) == md5_file($pwd . '/passthru_test')) { + if (md5_file($php) == md5_file($tmpfile)) { echo "Works\n"; } else { echo "Does not work\n"; } - @unlink($pwd . '/passthru_test'); + @unlink($tmpfile); ?> --EXPECT-- HELLO -- 2.40.0