From: foobar Date: Tue, 15 Jul 2003 07:06:42 +0000 (+0000) Subject: Make this test work regardless of safe_mode setting (bug #24654) X-Git-Tag: BEFORE_ARG_INFO~243 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94a19d1bc6c35510de05b92450fa435362dba0b9;p=php Make this test work regardless of safe_mode setting (bug #24654) --- 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 {