php-src/tests/lang/034.phpt

23 lines
534 B
Plaintext
Raw Normal View History

--TEST--
Bug #12647 (Locale settings affecting float parsing)
--SKIPIF--
<?php # try to activate a german locale
2006-08-27 15:06:15 +00:00
if (setlocale(LC_NUMERIC, "de_DE", "de", "german", "ge", "de_DE.ISO8859-1") === FALSE) {
2002-10-23 20:35:16 +00:00
print "skip";
}
?>
2007-05-18 11:29:40 +00:00
--INI--
precision=14
--FILE--
<?php
2002-10-23 20:35:16 +00:00
# activate the german locale
2006-08-27 15:06:15 +00:00
setlocale(LC_NUMERIC, "de_DE", "de", "german", "ge", "de_DE.ISO8859-1");
echo (float)"3.14", "\n";
?>
--EXPECT--
2002-10-10 18:36:12 +00:00
3,14
2007-02-19 20:02:08 +00:00
--UEXPECTF--
2006-12-06 13:11:02 +00:00
Strict Standards: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d
3,14