1--TEST--
2Phar front controller with invalid callback for rewrites
3--INI--
4default_charset=UTF-8
5--EXTENSIONS--
6phar
7--ENV--
8SCRIPT_NAME=/frontcontroller31.php
9REQUEST_URI=/frontcontroller31.php
10--EXPECTHEADERS--
11Content-type: text/html; charset=UTF-8
12--FILE_EXTERNAL--
13files/frontcontroller16.phar
14--EXPECTF--
15Fatal error: Uncaught TypeError: Phar::webPhar(): Argument #5 ($rewrite) must be a valid callback or null, class "fail" not found in %s:%d
16Stack trace:
17#0 %s(%d): Phar::webPhar('test.phar', '/index.php', NULL, Array, Array)
18#1 {main}
19  thrown in %s on line %d
20