dis-bench / src /php /php-src /ext /phar /tests /files /frontcontroller14.phar.inc
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
522 Bytes
<?php
@unlink(dirname(__FILE__) . '/frontcontroller14.phar');
$a = new Phar(dirname(__FILE__) . '/frontcontroller14.phar');
$a['html/index.php'] = '<?php
var_dump($_SERVER["PATH_INFO"]);
var_dump($_SERVER["PATH_TRANSLATED"]);
';
$a->setStub('<?php
function s($a)
{
return "/html/index.php";
}
Phar::interceptFileFuncs();
Phar::mungServer(array("PHP_SELF", "REQUEST_URI"));
Phar::webPhar("whatever", "/html/index.php", null, array(), "s");
echo "oops did not run\n";
var_dump($_ENV, $_SERVER);
__HALT_COMPILER();');
?>