summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sapi/cgi/tests/009.phpt6
1 files changed, 4 insertions, 2 deletions
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, '<?php var_dump($_SERVER["TRANSLATED_PATH"]); ');
+file_put_contents($f, '<?php var_dump($_SERVER["TRANSLATED_PATH"]); ?>');
-echo (`$php $f`);
+echo (`$php -n $f`);
echo "Done\n";
+
+@unlink($f);
?>
--EXPECTF--
X-Powered-By: PHP/%s