summaryrefslogtreecommitdiff
path: root/tests/lang/034.phpt
blob: 9b10603c83b529669aaa0dca131e45e4927c33ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Locale settings affecting float parsing
--SKIPIF--
<?php  # try to activate a german locale
if (setlocale(LC_NUMERIC, "de_DE", "de", "german", "ge") === FALSE) {
	print "skip";
}
?>
--POST--
--GET--
--FILE--
<?php 
# activate the german locale
setlocale(LC_NUMERIC, "de_DE", "de", "german", "ge");

echo (float)"3.14", "\n";

?>
--EXPECT--
3,14