From: foobar Date: Sun, 3 Jun 2007 22:50:19 +0000 (+0000) Subject: fix test X-Git-Tag: php-5.2.4RC1~437 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca1b7e7b4735b6582c65aa0dc3929a2ef34ba78f;p=php fix test --- diff --git a/sapi/cgi/tests/009.phpt b/sapi/cgi/tests/009.phpt index c92fc87a83..1c429ac198 100644 --- a/sapi/cgi/tests/009.phpt +++ b/sapi/cgi/tests/009.phpt @@ -14,11 +14,13 @@ $f = tempnam(sys_get_temp_dir(), 'cgitest'); putenv("TRANSLATED_PATH=".$f."/x"); putenv("SCRIPT_FILENAME=".$f."/x"); -file_put_contents($f, ''); -echo (`$php $f`); +echo (`$php -n $f`); echo "Done\n"; + +@unlink($f); ?> --EXPECTF-- X-Powered-By: PHP/%s