1--TEST--
2Phar front controller $_SERVER munging success [cache_list]
3--INI--
4default_charset=UTF-8
5phar.cache_list={PWD}/frontcontroller21.php
6cgi.fix_pathinfo=1
7--EXTENSIONS--
8phar
9--SKIPIF--
10<?php
11if (getenv('SKIP_ASAN')) die('xleak LSan crashes for this test');
12?>
13--ENV--
14SCRIPT_NAME=/frontcontroller21.php
15REQUEST_URI=/frontcontroller21.php/index.php?test=hi
16PATH_INFO=/index.php
17QUERY_STRING=test=hi
18--FILE_EXTERNAL--
19files/frontcontroller12.phar
20--EXPECTHEADERS--
21Content-type: text/html; charset=UTF-8
22--EXPECTF--
23string(10) "/index.php"
24string(10) "/index.php"
25string(%d) "phar://%sfrontcontroller21.php/index.php"
26string(18) "/index.php?test=hi"
27string(32) "/frontcontroller21.php/index.php"
28string(22) "/frontcontroller21.php"
29string(%d) "%sfrontcontroller21.php"
30string(40) "/frontcontroller21.php/index.php?test=hi"
31