mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
c5401854fc
This should fix most of the remaining issues with tabs and spaces being mixed in tests.
24 lines
642 B
PHP
24 lines
642 B
PHP
--TEST--
|
|
Bug #74170 locale information change after mime_content_type
|
|
--SKIPIF--
|
|
<?php
|
|
if (!class_exists('finfo'))
|
|
die('skip no fileinfo extension');
|
|
if (!extension_loaded('intl'))
|
|
die('skip intl extension not enabled');
|
|
if (setlocale(LC_CTYPE, 'ru_RU.koi8r') === false)
|
|
die('skip ru_RU.koi8r locale is not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(setlocale(LC_CTYPE, 'ru_RU.koi8r'));
|
|
var_dump(nl_langinfo(CODESET));
|
|
var_dump(mime_content_type(__DIR__ . '/resources/test.ppt'));
|
|
var_dump(nl_langinfo(CODESET));
|
|
?>
|
|
--EXPECT--
|
|
string(11) "ru_RU.koi8r"
|
|
string(6) "KOI8-R"
|
|
string(29) "application/vnd.ms-powerpoint"
|
|
string(6) "KOI8-R"
|