From 94a19d1bc6c35510de05b92450fa435362dba0b9 Mon Sep 17 00:00:00 2001 From: foobar Date: Tue, 15 Jul 2003 07:06:42 +0000 Subject: [PATCH] Make this test work regardless of safe_mode setting (bug #24654) --- ext/standard/tests/file/bug22414.phpt | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/ext/standard/tests/file/bug22414.phpt b/ext/standard/tests/file/bug22414.phpt index 8847ded2b8..f6effd272c 100644 --- a/ext/standard/tests/file/bug22414.phpt +++ b/ext/standard/tests/file/bug22414.phpt @@ -1,12 +1,7 @@ --TEST-- Bug #22414: passthru() does not read data correctly ---SKIPIF-- - --INI-- +safe_mode= output_handler= --FILE-- '.$tmpfile ; + $cmd = $php . ' -n -r \"readfile(@getenv(\'TEST_PHP_EXECUTABLE\')); \"'; + $cmd = $php . ' -n -r \' passthru("'.$cmd.'"); \' > '.$tmpfile ; exec($cmd); - + if (md5_file($php) == md5_file($tmpfile)) { echo "Works\n"; } else { -- 2.50.1