1--TEST-- 2Bug #74170 locale information change after mime_content_type 3--EXTENSIONS-- 4fileinfo 5intl 6--SKIPIF-- 7<?php 8if (setlocale(LC_CTYPE, 'ru_RU.koi8r') === false) 9 die('skip ru_RU.koi8r locale is not available'); 10?> 11--FILE-- 12<?php 13var_dump(setlocale(LC_CTYPE, 'ru_RU.koi8r')); 14var_dump(nl_langinfo(CODESET)); 15var_dump(mime_content_type(__DIR__ . '/resources/test.ppt')); 16var_dump(nl_langinfo(CODESET)); 17?> 18--EXPECT-- 19string(11) "ru_RU.koi8r" 20string(6) "KOI8-R" 21string(29) "application/vnd.ms-powerpoint" 22string(6) "KOI8-R" 23