Annotation of embedaddon/php/ext/phar/tests/files/frontcontroller8.phar.inc, revision 1.1.1.1
1.1 misho 1: <?php
2: @unlink(dirname(__FILE__) . '/frontcontroller8.phar');
3: $a = new Phar(dirname(__FILE__) . '/frontcontroller8.phar');
4: $a['a.phps'] = 'hio1';
5: $a['a1.phps'] = '<?php var_dump($_SERVER[b"REQUEST_URI"], $_SERVER[b"PATH_INFO"]);';
6: $a['a.jpg'] = 'hio2';
7: $a['a.php'] = '<?php function hio(){}';
8: $a['fronk.gronk'] = 'hio3';
9: $a['404.php'] = 'My 404 is rawesome';
10: $a['noext'] = 'hi';
11: $a['unknown.ext'] = '<?php var_dump("hi");';
12: $a['bigfile.txt'] = str_repeat('a', 8193);
13: $a['fatalerror.phps'] = '<?php oopsie_daisy();';
14: $a->setStub('<?php
15: Phar::webPhar("whatever", "index.php", "404.php", array("jpg" => "foo/bar", "phps" => Phar::PHP, "php" => Phar::PHPS));
16: echo "oops did not run\n";
17: var_dump($_ENV, $_SERVER);
18: __HALT_COMPILER();');
19: ?>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>