1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 07:58:20 +02:00
Files
Nikita Popov c5401854fc Run tidy
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
2020-09-18 14:28:32 +02:00

88 lines
1.7 KiB
PHP
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
--TEST--
Bug #65769 localeconv() broken in TS builds
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) != 'WIN') {
die('skip Windows only');
}
if (PHP_WINDOWS_VERSION_MAJOR < 10) {
die("skip for Windows 10 and above");
}
?>
--FILE--
<?php
$locales = array('sve', 'french', 'us', 'ru', 'czech', 'serbian');
foreach ($locales as $locale) {
$locale = setlocale(LC_ALL, $locale);
$lconv = localeconv();
var_dump(
$locale,
$lconv['decimal_point'],
$lconv['thousands_sep'],
$lconv['int_curr_symbol'],
$lconv['currency_symbol'],
$lconv['mon_decimal_point'],
$lconv['mon_thousands_sep']
);
if ($locale === 'Swedish_Sweden.1252') {
var_dump(in_array($lconv['mon_thousands_sep'], ['.', ' ']));
}
echo '++++++++++++++++++++++', "\n";
}
?>
+++DONE+++
--EXPECTF--
string(19) "Swedish_Sweden.1252"
string(1) ","
string(1) " "
string(3) "SEK"
string(2) "kr"
string(1) ","
string(1) "%c"
bool(true)
++++++++++++++++++++++
string(18) "French_France.1252"
string(1) ","
string(1) " "
string(3) "EUR"
string(1) "€"
string(1) ","
string(1) " "
++++++++++++++++++++++
string(26) "English_United States.1252"
string(1) "."
string(1) ","
string(3) "USD"
string(1) "$"
string(1) "."
string(1) ","
++++++++++++++++++++++
string(2) "ru"
string(1) ","
string(1) " "
string(3) "RUB"
string(1) "?"
string(1) ","
string(1) " "
++++++++++++++++++++++
string(%d) "Czech_Czech%s.1250"
string(1) ","
string(1) " "
string(3) "CZK"
string(2) "Kè"
string(1) ","
string(1) " "
++++++++++++++++++++++
string(19) "Serbian_Serbia.1250"
string(1) ","
string(1) "."
string(3) "RSD"
string(3) "RSD"
string(1) ","
string(1) "."
++++++++++++++++++++++
+++DONE+++