$a['a.jpg'] = 'hio';
$a['a.phps'] = '<?php function hio(){}';
$a->setStub('<?php
-Phar::webPhar();
+Phar::webPhar("whatever", "index.php", null, array(), array("/hi" => "a.phps"));
echo "oops did not run\n";
var_dump($_ENV, $_SERVER);
__HALT_COMPILER();');
<title>File Not Found<title>
</head>
<body>
- <h1>404 - File /index.php Not Found</h1>
+ <h1>404 - File index.php Not Found</h1>
</body>
</html>
\ No newline at end of file
--- /dev/null
+--TEST--
+Phar front controller rewrite array
+--SKIPIF--
+<?php if (!extension_loaded("phar")) die("skip"); ?>
+--ENV--
+SCRIPT_NAME=/frontcontroller9.php/hi
+REQUEST_URI=/frontcontroller9.php/hi
+--FILE_EXTERNAL--
+frontcontroller3.phar
+--EXPECTHEADERS--
+Content-type: text/html
+--EXPECT--
+<code><span style="color: #000000">
+<span style="color: #0000BB"><?php </span><span style="color: #007700">function </span><span style="color: #0000BB">hio</span><span style="color: #007700">(){}</span>
+</span>
+</code>
\ No newline at end of file