From 80c75c4d6261a68704baceb4c415564bb8945dda Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Sat, 17 May 2003 20:06:00 +0000 Subject: [PATCH] MFB(r-1.1.2.7): fix test --- ext/standard/tests/file/bug22414.phpt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/standard/tests/file/bug22414.phpt b/ext/standard/tests/file/bug22414.phpt index 929c648e5d..45654078f4 100644 --- a/ext/standard/tests/file/bug22414.phpt +++ b/ext/standard/tests/file/bug22414.phpt @@ -10,8 +10,8 @@ Bug #22414: passthru() does not read data correctly output_handler= --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.50.1