mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
fix test
This commit is contained in:
parent
d12bbce277
commit
ca1b7e7b47
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user