1--TEST--
2Phar front controller $_SERVER munging success zip-based
3--INI--
4default_charset=UTF-8
5--SKIPIF--
6<?php if (!extension_loaded("phar")) die("skip"); ?>
7<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
8--ENV--
9SCRIPT_NAME=/frontcontroller21.phar.php
10REQUEST_URI=/frontcontroller21.phar.php/index.php?test=hi
11PATH_INFO=/index.php
12QUERY_STRING=test=hi
13--FILE_EXTERNAL--
14files/frontcontroller12.phar.zip
15--EXPECTHEADERS--
16Content-type: text/html; charset=UTF-8
17--EXPECTF--
18%unicode|string%(10) "/index.php"
19string(10) "/index.php"
20string(%d) "phar://%sfrontcontroller21.phar.php/index.php"
21string(18) "/index.php?test=hi"
22string(37) "/frontcontroller21.phar.php/index.php"
23string(27) "/frontcontroller21.phar.php"
24string(%d) "%sfrontcontroller21.phar.php"
25string(45) "/frontcontroller21.phar.php/index.php?test=hi"