cvs: php4 /tests/lang 034.phpt
| From: | Jani Taskinen | Date: | Thu, 01 Aug 2002 11:49:42 +0000 |
| Subject: | cvs: php4 /tests/lang 034.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-13076@lists.php.net to get a copy of this message | ||
sniper Thu Aug 1 07:49:42 2002 EDT
Modified files:
/php4/tests/lang 034.phpt
Log:
Use the constant instead of string for locale type.
Index: php4/tests/lang/034.phpt
diff -u php4/tests/lang/034.phpt:1.1 php4/tests/lang/034.phpt:1.2
--- php4/tests/lang/034.phpt:1.1 Wed Jul 17 04:49:26 2002
+++ php4/tests/lang/034.phpt Thu Aug 1 07:49:41 2002
@@ -4,7 +4,7 @@
<?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 @@
<?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