summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/setlocale_variation2.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/strings/setlocale_variation2.phpt')
-rw-r--r--ext/standard/tests/strings/setlocale_variation2.phpt16
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/standard/tests/strings/setlocale_variation2.phpt b/ext/standard/tests/strings/setlocale_variation2.phpt
index 5ebdfe8d50..fad3298cc7 100644
--- a/ext/standard/tests/strings/setlocale_variation2.phpt
+++ b/ext/standard/tests/strings/setlocale_variation2.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test setlocale() function : usage variations - Setting all available locales in the platform
+Test setlocale() function : usage variations - Setting all available locales in the platform
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) == 'WIN') {
@@ -9,16 +9,16 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
--FILE--
<?php
/* Prototype : string setlocale (int $category , string $locale [,string $..] )
- : string setlocale(int $category , array $locale);
- * Description: Sets locale information.Returns the new current locale , or FALSE
- if locale functionality is not implemented in this platform.
+ : string setlocale(int $category , array $locale);
+ * Description: Sets locale information.Returns the new current locale , or FALSE
+ if locale functionality is not implemented in this platform.
* Source code: ext/standard/string.c
*/
/* setlocale() to set all available locales in the system and check the success count */
echo "*** Testing setlocale() : usage variations ***\n";
-function good_locale($locale) {
+function good_locale($locale) {
/**
* Note: no_NO is a bogus locale and should not be used, see https://bugzilla.redhat.com/971416
**/
@@ -26,7 +26,7 @@ function good_locale($locale) {
}
/* Prototype : array list_system_locales( void )
- * Description: To get the currently installed locle in this platform
+ * Description: To get the currently installed locle in this platform
* Arguments : Nil
* Returns : set of locale as array
*/
@@ -52,7 +52,7 @@ function list_system_locales() {
// gather all the locales installed in the system
$all_system_locales = list_system_locales();
-//try different locale names
+//try different locale names
$failure_locale = array();
$success_count = 0;
@@ -74,7 +74,7 @@ echo "No of locales found on the machine = ".count($all_system_locales)."\n";
echo "No of setlocale() success = ".$success_count."\n";
echo "Expected no of failures = 0\n";
echo "Test ";
-// check if there were any failure of setlocale() function earlier, if any
+// check if there were any failure of setlocale() function earlier, if any
// failure then dump the list of failing locales
if($success_count != count($all_system_locales)){
echo "FAILED\n";