]> granicus.if.org Git - php/commitdiff
Use the constant instead of string for locale type.
authorfoobar <sniper@php.net>
Thu, 1 Aug 2002 11:49:41 +0000 (11:49 +0000)
committerfoobar <sniper@php.net>
Thu, 1 Aug 2002 11:49:41 +0000 (11:49 +0000)
tests/lang/034.phpt

index 2516f8604cefc897008424006992f87ad3c6e378..a59d0357cfd7094b0072b7dc5d5cea3f59b5065e 100644 (file)
@@ -4,7 +4,7 @@ Locale settings affecting float parsing
 <?php  # try to activate a german locale
 $status = false;
 foreach(array("de_DE", "de", "german", "ge") as $lang) {
-  if($lang == setlocale("LC_ALL", $lang)) {
+  if($lang == setlocale(LC_ALL, $lang)) {
          $status = true; 
        continue;
   }
@@ -17,12 +17,13 @@ if(!$status) print "skip";
 <?php 
 # try to activate a german locale
 foreach(array("de_DE", "de", "german", "ge") as $lang) {
-  if($lang == setlocale("LC_ALL", $lang)) {
+  if($lang == setlocale(LC_ALL, $lang)) {
          continue;
   }
 }
 
-echo (float)"3.14";
+echo (float)"3.14", "\n";
+
 ?>
 --EXPECT--
 3.14