cvs: php4 /tests/lang 034.phpt
| From: | Melvyn Sopacua | Date: | Thu, 10 Oct 2002 16:39:53 +0000 |
| Subject: | cvs: php4 /tests/lang 034.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14782@lists.php.net to get a copy of this message | ||
msopacua Thu Oct 10 12:39:53 2002 EDT
Modified files:
/php4/tests/lang 034.phpt
Log:
Fix platform dependencies, setlocale output, bug #19836
Testing numerics, so set numeric. If the platform doesn't support this
category, passing this test is more likely to be coincedence than expected
behavior.
Index: php4/tests/lang/034.phpt
diff -u php4/tests/lang/034.phpt:1.2 php4/tests/lang/034.phpt:1.3
--- php4/tests/lang/034.phpt:1.2 Thu Aug 1 07:49:41 2002
+++ php4/tests/lang/034.phpt Thu Oct 10 12:39:52 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_NUMERIC, $lang) {
$status = true;
continue;
}
@@ -17,7 +17,7 @@
<?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_NUMERIC, $lang)) {
continue;
}
}