xref: /PHP-8.1/ext/intl/tests/bug67052-win32.phpt (revision 74859783)
1--TEST--
2Bug #67052 - NumberFormatter::parse() resets LC_NUMERIC setting
3--EXTENSIONS--
4intl
5--SKIPIF--
6<?php
7if (substr(PHP_OS, 0, 3) != 'WIN') {
8  die("skip Valid only on Windows");
9}
10?>
11--FILE--
12<?php
13
14function ut_main()
15{
16        setlocale(LC_ALL, 'de-de');
17        $fmt = new NumberFormatter( 'sl_SI.UTF-8', NumberFormatter::DECIMAL);
18        $num = "1.234.567,891";
19        $res_str =  $fmt->parse($num)."\n";
20        $res_str .=  setlocale(LC_NUMERIC, 0);
21        return $res_str;
22}
23
24include_once( 'ut_common.inc' );
25ut_run();
26
27?>
28--EXPECT--
291234567.891
30de-de
31