summaryrefslogtreecommitdiff
path: root/tests/lang/034.phpt
blob: a59d0357cfd7094b0072b7dc5d5cea3f59b5065e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--TEST--
Locale settings affecting float parsing
--SKIPIF--
<?php  # try to activate a german locale
$status = false;
foreach(array("de_DE", "de", "german", "ge") as $lang) {
  if($lang == setlocale(LC_ALL, $lang)) {
	  $status = true; 
	continue;
  }
}
if(!$status) print "skip";
?>
--POST--
--GET--
--FILE--
<?php 
# try to activate a german locale
foreach(array("de_DE", "de", "german", "ge") as $lang) {
  if($lang == setlocale(LC_ALL, $lang)) {
	  continue;
  }
}

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

?>
--EXPECT--
3.14