Back to index

php5  5.3.10
frontcontroller4.phar.inc
Go to the documentation of this file.
00001 <?php
00002 @unlink(dirname(__FILE__) . '/frontcontroller4.phar.tar');
00003 $a = new Phar(dirname(__FILE__) . '/frontcontroller4.phar.tar');
00004 $a['a.php'] = 'hio';
00005 $a['a.jpg'] = 'hio';
00006 $a['a.phps'] = '<?php function hio(){}';
00007 $a->setStub('<?php
00008 function s($a)
00009 {
00010     static $b = array(b"/hi" => false);
00011     if (isset($b[$a])) return $b[$a];
00012     return $a;
00013 }
00014 Phar::webPhar("whatever", "index.php", null, array(), "s");
00015 echo "oops did not run\n";
00016 var_dump($_ENV, $_SERVER);
00017 __HALT_COMPILER();');
00018 ?>