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--EXTENSIONS--
7phar
8--SKIPIF--
9<?php
10if (getenv('SKIP_ASAN')) die('xleak LSan crashes for this test');
11?>
12--ENV--
13SCRIPT_NAME=/frontcontroller31.php
14REQUEST_URI=/frontcontroller31.php
15--EXPECTHEADERS--
16Content-type: text/html; charset=UTF-8
17--FILE_EXTERNAL--
18files/frontcontroller16.phar
19--EXPECTF--
20Fatal error: Uncaught TypeError: Phar::webPhar(): Argument #5 ($rewrite) must be a valid callback or null, class "fail" not found in %s:%d
21Stack trace:
22#0 %s(%d): Phar::webPhar('test.phar', '/index.php', NULL, Array, Array)
23#1 {main}
24  thrown in %s on line %d
25