Annotation of embedaddon/php/ext/phar/tests/frontcontroller11.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Phar front controller mime type extension is not a string
3: --INI--
4: default_charset=
5: --SKIPIF--
6: <?php if (!extension_loaded("phar")) die("skip"); ?>
7: <?php die("skip"); ?>
8: --ENV--
9: SCRIPT_NAME=/frontcontroller11.php
10: REQUEST_URI=/frontcontroller11.php/a.php
11: PATH_INFO=/a.php
12: --FILE_EXTERNAL--
13: files/frontcontroller5.phar
14: --EXPECTHEADERS--
15: Content-type: text/html
16: --EXPECTF--
17: Fatal error: Uncaught exception 'PharException' with message 'Key of MIME type overrides array must be a file extension, was "0"' in %sfrontcontroller11.php:2
18: Stack trace:
19: #0 %sfrontcontroller11.php(2): Phar::webPhar('whatever', 'index.php', '', Array)
20: #1 {main}
21: thrown in %sfrontcontroller11.php on line 2
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>