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