php-src/tests/lang/034.phpt
Antony Dovgal 8f98226510 fix tests
2006-12-06 13:11:02 +00:00

21 lines
512 B
PHP

--TEST--
Bug #12647 (Locale settings affecting float parsing)
--SKIPIF--
<?php # try to activate a german locale
if (setlocale(LC_NUMERIC, "de_DE", "de", "german", "ge", "de_DE.ISO8859-1") === FALSE) {
print "skip";
}
?>
--FILE--
<?php
# activate the german locale
setlocale(LC_NUMERIC, "de_DE", "de", "german", "ge", "de_DE.ISO8859-1");
echo (float)"3.14", "\n";
?>
--EXPECT--
3,14
--UEXPECT--
Strict Standards: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d
3,14