Home
last modified time | relevance | path

Searched refs:setlocale (Results 1 – 25 of 160) sorted by relevance

1234567

/php-src/ext/standard/tests/strings/
H A Dsetlocale_error.phpt2 Test setlocale() function : error condition
7 if (setlocale(LC_ALL, 'invalid') === 'invalid') { die('skip setlocale() is broken /w musl'); }
14 echo "*** Testing setlocale() : error conditions ***\n";
19 var_dump( setlocale(LC_ALL,$invalid_locales) );
23 var_dump( setlocale(LC_ALL,"en_US.invalid", "en_AU.invalid", "ko_KR.invalid") );
27 var_dump(setlocale(LC_ALL,str_pad('',255,'A')));
32 *** Testing setlocale() : error conditions ***
34 -- Testing setlocale() function with invalid locale array, 'category' = LC_ALL --
37 -- Testing setlocale() function with invalid multiple locales, 'category' = LC_ALL --
40 -- Testing setlocale() function with locale name too long, 'category' = LC_ALL --
[all …]
H A Dsetlocale-win32.phpt9 var_dump(setlocale(LC_ALL, 'de_DE'));
10 var_dump(setlocale(LC_ALL, 'de_DE.UTF-8'));
12 var_dump(setlocale(LC_ALL, 'uk_UK'));
13 var_dump(setlocale(LC_ALL, 'uk_US'));
14 var_dump(setlocale(LC_ALL, 'us_UK'));
15 var_dump(setlocale(LC_ALL, 'us_US'));
H A Dhtmlentities03.phpt2 htmlentities() test 3 (setlocale / de_DE.ISO-8859-1)
5 $result = (bool)setlocale(LC_CTYPE, "de_DE.ISO-8859-1", "de_DE.ISO8859-1");
6 if (!$result || preg_match('/ISO/i', setlocale(LC_CTYPE, 0)) == 0) {
7 die("skip setlocale() failed\n");
17 setlocale( LC_CTYPE, "de_DE.ISO-8859-1", "de_DE.ISO8859-1");
H A Dbug68636.phpt2 Bug #68636 (setlocale no longer returns current value per category).
8 if (setlocale(LC_ALL, "en_US.UTF8") !== "en_US.UTF8") {
14 var_dump(setlocale(LC_TIME, 'en_US.UTF8'));
15 var_dump(setlocale(LC_NUMERIC, 'C'));
16 var_dump(setlocale(LC_TIME, 0));
H A Dsetlocale_basic3.phpt2 Test setlocale() function : basic functionality - passing multiple locales as argument
5 if (setlocale(LC_ALL, 'invalid') === 'invalid') { die('skip setlocale() is broken /w musl'); }
9 if (setlocale(LC_ALL, "en_US.utf8", "Ko_KR.utf8", "zh_CN.utf8") === false) {
15 /* Test the setlocale() when multiple locales are provided as argument */
37 pass as argument to setlocale() */
38 echo "*** Testing setlocale() by passing multiple locales as argument ***\n";
58 // Now check for three locales that is present in the system and use that as argument to setlocale()
64 // call setlocale()
65 $new_locale = setlocale(LC_ALL, "en_US.utf8", "Ko_KR.utf8", "zh_CN.utf8");
67 // dump the name of the new locale set by setlocale()
[all …]
H A Dsetlocale_variation1.phpt2 Test setlocale() function : usage variations - passing multiple valid/invalid locales as argument
5 if (setlocale(LC_ALL, 'invalid') === 'invalid') { die('skip setlocale() is broken /w musl'); }
9 if (setlocale(LC_ALL, "en_US.utf8", "Ko_KR.utf8", "zh_CN.utf8") === false) {
15 /* Test the setlocale() when multiple valid/invalid locales are provided as argument */
37 pass as argument to setlocale(), pass 2 invalid arguments along with two valid arguments*/
38 echo "*** Testing setlocale() by passing multiple valid/invalid locales as argument ***\n";
57 // Now check for three locales that is present in the system and use that as argument to setlocale()
63 // call setlocale()
64 …$new_locale = setlocale(LC_ALL, "en_US.invalid", "en_US.utf8", "Ko_KR.utf8", "KO_KR.invalid", "zh_…
66 // dump the name of the new locale set by setlocale()
[all …]
H A Dsetlocale_variation2.phpt2 Test setlocale() function : usage variations - Setting all available locales in the platform
16 echo "*** Testing setlocale() : usage variations ***\n";
51 echo "-- Test setlocale() with all available locale in the system --\n";
53 // try n set each locale using setlocale() and keep track failures, if any
56 if(setlocale(LC_ALL,$value )){
66 echo "No of setlocale() success = ".$success_count."\n";
69 // check if there were any failure of setlocale() function earlier, if any
73 echo "Names of locale() for which setlocale() failed ...\n";
83 *** Testing setlocale() : usage variations ***
84 -- Test setlocale() with all available locale in the system --
[all …]
H A Dsetlocale_variation4.phpt2 Test setlocale() function : usage variations - setting system locale as null
5 if (setlocale(LC_ALL, 'invalid') === 'invalid') { die('skip setlocale() is broken /w musl'); }
9 if (setlocale(LC_ALL,'en_US.utf8') === false || setlocale(LC_ALL,'en_AU.utf8') === false) {
19 echo "*** Testing setlocale() : usage variations - Setting system locale = null ***\n";
22 setlocale(LC_ALL,"en_AU.utf8");
25 //returns current locale,before executing setlocale() .
29 //Testing setlocale() by giving locale = null
31 setlocale(LC_ALL, null);
34 //Returns Current locale,after executing setlocale().
49 *** Testing setlocale() : usage variations - Setting system locale = null ***
H A Dsetlocale_variation5.phpt2 Test setlocale() function : usage variations - Setting system locale as empty string
5 if (setlocale(LC_ALL, 'invalid') === 'invalid') { die('skip setlocale() is broken /w musl'); }
9 if (setlocale(LC_ALL,'en_AU.utf8') === false || setlocale(LC_ALL,'en_US.utf8') === false) {
19 echo "*** Testing setlocale() : usage variations - setting system locale = \"\" ***\n";
22 setlocale(LC_ALL,'en_AU.utf8');
26 //returns current locale,before executing setlocale() .
31 //Testing setlocale() by giving locale = null
33 setlocale(LC_ALL, "");
37 //Returns Current locale,after executing setlocale().
53 *** Testing setlocale() : usage variations - setting system locale = "" ***
H A Dsetlocale_variation3.phpt2 Test setlocale() function : usage variations - setting system locale = 0
5 if (setlocale(LC_ALL, 'invalid') === 'invalid') { die('skip setlocale() is broken /w musl'); }
9 if (setlocale(LC_ALL,'en_US.utf8') === false) {
17 echo "*** Testing setlocale() : usage variations - setting system locale = 0 ***\n";
22 setlocale(LC_ALL,"en_US.utf8");
25 //returns current locale,before executing setlocale().
30 //Testing setlocale() by giving locale = 0
32 setlocale(LC_ALL, 0);
35 //returns current locale,after executing setlocale().
51 *** Testing setlocale() : usage variations - setting system locale = 0 ***
H A Dhtmlentities02.phpt2 htmlentities() test 2 (setlocale / fr_FR.ISO-8859-15)
5 $result = (bool)setlocale(LC_CTYPE, "fr_FR.ISO-8859-15", "fr_FR.ISO8859-15", 'fr_FR@euro');
7 die("skip setlocale() failed\n");
17 setlocale(LC_CTYPE, "fr_FR.ISO-8859-15", "fr_FR.ISO8859-15", 'fr_FR@euro');
H A Dprintf_h_H.phpt5 if (setlocale(LC_ALL, 'invalid') === 'invalid') { die('skip setlocale() is broken /w musl'); }
6 if (!setlocale(LC_ALL, "de_DE.utf8")) die("skip de_DE.utf8 locale not available");
11 setlocale(LC_ALL, "de_DE.utf8");
H A Dsprintf_f_3.phpt5 if (setlocale(LC_ALL, 'invalid') === 'invalid') { die('skip setlocale() is broken /w musl'); }
6 if(false == setlocale(LC_NUMERIC, "is_IS", "is_IS.UTF-8")) print "skip icelandic locale not support…
10 setlocale(LC_NUMERIC, "is_IS", "is_IS.UTF-8");
H A Dsetlocale_basic2.phpt2 Test setlocale() function : basic functionality - set locale using an array
5 if (setlocale(LC_ALL, 'invalid') === 'invalid') { die('skip setlocale() is broken /w musl'); }
15 /* Test the setlocale() when an array is provided as input containing list of locales */
37 input to setlocale() */
39 echo "*** Testing setlocale() with an array containing list of locales ***\n";
74 // given as input to setlocale(), later verify the new locale setting by
84 // setlocale() function.
85 echo "-- Testing setlocale() : 'category' argument as LC_ALL & 'locale' argument as an array --\n";
88 $new_locale = setlocale(LC_ALL, $list_of_locales);
113 *** Testing setlocale() with an array containing list of locales ***
[all …]
/php-src/ext/pcre/tests/
H A Dlocales.phpt5 if (setlocale(LC_ALL, 'invalid') === 'invalid') { die('skip setlocale() is broken /w musl'); }
6 if (!@setlocale(LC_ALL, 'pt_PT', 'pt', 'pt_PT.ISO8859-1', 'portuguese')) die('skip pt locale not av…
14 setlocale(LC_ALL, 'C', 'POSIX');
17 setlocale(LC_ALL, 'pt_PT', 'pt', 'pt_PT.ISO8859-1', 'portuguese');
20 setlocale(LC_ALL, 'C', 'POSIX');
H A Dctype_back_to_c.phpt5 if (setlocale(LC_ALL, 'invalid') === 'invalid') { die('skip setlocale() is broken /w musl'); }
6 if (!setlocale(LC_CTYPE, "de_DE", "de-DE")) die("skip requires de_DE locale");
10 var_dump(setlocale(LC_CTYPE, "de_DE", "de-DE") !== false);
12 var_dump(setlocale(LC_CTYPE, "C") !== false);
H A Dbug73483.phpt6 setlocale(LC_ALL, "C");
8 setlocale(LC_ALL, "en_US");
10 setlocale(LC_ALL, "C");
H A Dbug76850.phpt5 $l = setlocale(LC_CTYPE, 0);
15 $oldlocale = setlocale(LC_CTYPE, 0);
16 setlocale(LC_CTYPE, $oldlocale);
/php-src/tests/lang/
H A Dbug30638.phpt5 if (setlocale(LC_ALL, 'invalid') === 'invalid') { die('skip setlocale() is broken /w musl'); }
7 if (setlocale(LC_NUMERIC, "de_DE.UTF-8", "de_DE", "de", "german", "ge", "de_DE.ISO-8859-1") === FAL…
8 print "skip setlocale() failed";
16 setlocale(LC_NUMERIC, "de_DE.UTF-8", "de_DE", "de", "german", "ge", "de_DE.ISO-8859-1");
/php-src/ext/intl/tests/
H A Dbug67052.phpt10 $l = setlocale(LC_ALL, 'de_DE');
14 setlocale(LC_ALL, $l);
21 setlocale(LC_ALL, 'de_DE.UTF-8');
25 $res_str .= setlocale(LC_NUMERIC, 0);
/php-src/ext/fileinfo/tests/
H A Dbug74170.phpt8 if (setlocale(LC_ALL, 'invalid') === 'invalid') { die('skip setlocale() is broken /w musl'); }
9 if (setlocale(LC_CTYPE, 'ru_RU.koi8r') === false)
14 var_dump(setlocale(LC_CTYPE, 'ru_RU.koi8r'));
/php-src/ext/ctype/tests/
H A Dlc_ctype_inheritance.phpt7 if (setlocale(LC_ALL, 'invalid') === 'invalid') { die('skip setlocale() is broken /w musl'); }
8 if (!setlocale(LC_CTYPE, "de_DE", "de-DE")) die("skip requires de_DE locale");
20 var_dump(setlocale(LC_CTYPE, "0"));
26 var_dump(setlocale(LC_CTYPE, "de_DE", "de-DE") !== false);
/php-src/ext/iconv/tests/
H A Diconv_basic_001.phpt10 if (setlocale(LC_ALL, 'invalid') === 'invalid') { die('skip setlocale() is broken /w musl'); }
11 if (setlocale(LC_ALL, "en_US.utf8") === false) { die('skip en_US.utf8 locales not available'); }
15 setlocale(LC_ALL, "en_US.utf8");
/php-src/tests/basic/
H A Dconsistent_float_string_casts.phpt5 if (setlocale(LC_ALL, 'invalid') === 'invalid') { die('skip setlocale() is broken /w musl'); }
6 if (!setlocale(
17 setlocale(
/php-src/sapi/cli/tests/
H A Dbug44564.phpt5 if (false == setlocale(LC_CTYPE, "UTF8", "en_US.UTF-8")) {
6 die("skip setlocale() failed\n");
11 setlocale(LC_CTYPE, "UTF8", "en_US.UTF-8");

Completed in 26 milliseconds

1234567