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