Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / php / ext / phar / tests / files / frontcontroller4.phar.inc
blobdaf807e419c68083457dc70cd628718bc50d5766
1 <?php
2 @unlink(dirname(__FILE__) . '/frontcontroller4.phar');
3 $a = new Phar(dirname(__FILE__) . '/frontcontroller4.phar');
4 $a['a.php'] = 'hio';
5 $a['a.jpg'] = 'hio';
6 $a['a.phps'] = '<?php function hio(){}';
7 $a->setStub('<?php
8 function s($a)
10     static $b = array(b"/hi" => false);
11     if (isset($b[$a])) return $b[$a];
12     return $a;
14 Phar::webPhar("whatever", "index.php", null, array(), "s");
15 echo "oops did not run\n";
16 var_dump($_ENV, $_SERVER);
17 __HALT_COMPILER();');