This commit is contained in:
foobar 2007-06-03 22:50:19 +00:00
parent d12bbce277
commit ca1b7e7b47

View File

@ -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