/PHP-8.0/ext/standard/tests/strings/ |
H A D | setlocale_error.phpt | 2 Test setlocale() function : error condition 13 echo "*** Testing setlocale() : error conditions ***\n"; 15 echo "\n-- Testing setlocale() function with invalid locale array, 'category' = LC_ALL --\n"; 18 var_dump( setlocale(LC_ALL,$invalid_locales) ); 22 var_dump( setlocale(LC_ALL,"en_US.invalid", "en_AU.invalid", "ko_KR.invalid") ); 26 var_dump(setlocale(LC_ALL,str_pad('',255,'A'))); 31 *** Testing setlocale() : error conditions *** 33 -- Testing setlocale() function with invalid locale array, 'category' = LC_ALL -- 36 -- Testing setlocale() function with invalid multiple locales, 'category' = LC_ALL -- 39 -- Testing setlocale() function with locale name too long, 'category' = LC_ALL -- [all …]
|
H A D | setlocale-win32.phpt | 9 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 D | htmlentities03.phpt | 2 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 D | bug68636.phpt | 2 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 D | setlocale_variation2.phpt | 2 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 D | htmlentities02.phpt | 2 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 D | setlocale_basic3.phpt | 2 Test setlocale() function : basic functionality - passing multiple locales as argument 8 if (setlocale(LC_ALL, "en_US.utf8", "Ko_KR.utf8", "zh_CN.utf8") === false) { 14 /* Test the setlocale() when multiple locales are provided as argument */ 36 pass as argument to setlocale() */ 37 echo "*** Testing setlocale() by passing multiple 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.utf8", "Ko_KR.utf8", "zh_CN.utf8"); 66 // dump the name of the new locale set by setlocale() 86 *** Testing setlocale() by passing multiple locales as argument *** [all …]
|
H A D | setlocale_variation5.phpt | 2 Test setlocale() function : usage variations - Setting system locale as empty string 8 if (setlocale(LC_ALL,'en_AU.utf8') === false || setlocale(LC_ALL,'en_US.utf8') === false) { 18 echo "*** Testing setlocale() : usage variations - setting system locale = \"\" ***\n"; 21 setlocale(LC_ALL,'en_AU.utf8'); 25 //returns current locale,before executing setlocale() . 30 //Testing setlocale() by giving locale = null 32 setlocale(LC_ALL, ""); 36 //Returns Current locale,after executing setlocale(). 52 *** Testing setlocale() : usage variations - setting system locale = "" ***
|
H A D | setlocale_variation1.phpt | 2 Test setlocale() function : usage variations - passing multiple valid/invalid locales as argument 8 if (setlocale(LC_ALL, "en_US.utf8", "Ko_KR.utf8", "zh_CN.utf8") === false) { 14 /* Test the setlocale() when multiple valid/invalid locales are provided as argument */ 36 pass as argument to setlocale(), pass 2 invalid arguments along with two valid arguments*/ 37 echo "*** Testing setlocale() by passing multiple valid/invalid locales as argument ***\n"; 56 // Now check for three locales that is present in the system and use that as argument to setlocale() 62 // call setlocale() 63 …$new_locale = setlocale(LC_ALL, "en_US.invalid", "en_US.utf8", "Ko_KR.utf8", "KO_KR.invalid", "zh_… 65 // dump the name of the new locale set by setlocale() 85 *** Testing setlocale() by passing multiple valid/invalid locales as argument *** [all …]
|
H A D | setlocale_variation3.phpt | 2 Test setlocale() function : usage variations - setting system locale = 0 8 if (setlocale(LC_ALL,'en_US.utf8') === false) { 16 echo "*** Testing setlocale() : usage variations - setting system locale = 0 ***\n"; 21 setlocale(LC_ALL,"en_US.utf8"); 24 //returns current locale,before executing setlocale(). 29 //Testing setlocale() by giving locale = 0 31 setlocale(LC_ALL, 0); 34 //returns current locale,after executing setlocale(). 50 *** Testing setlocale() : usage variations - setting system locale = 0 ***
|
H A D | setlocale_variation4.phpt | 2 Test setlocale() function : usage variations - setting system locale as null 8 if (setlocale(LC_ALL,'en_US.utf8') === false || setlocale(LC_ALL,'en_AU.utf8') === false) { 18 echo "*** Testing setlocale() : usage variations - Setting system locale = null ***\n"; 21 setlocale(LC_ALL,"en_AU.utf8"); 24 //returns current locale,before executing setlocale() . 28 //Testing setlocale() by giving locale = null 30 setlocale(LC_ALL, null); 33 //Returns Current locale,after executing setlocale(). 48 *** Testing setlocale() : usage variations - Setting system locale = null ***
|
H A D | setlocale_basic2.phpt | 2 Test setlocale() function : basic functionality - set locale using an array 8 if (setlocale(LC_ALL, "en_US.utf8", "en_AU.utf8", "ko_KR.utf8", "zh_CN.utf8", "de_DE.utf8", "es_EC.… 14 /* Test the setlocale() when an array is provided as input containing list of locales */ 36 input to setlocale() */ 38 echo "*** Testing setlocale() with an array containing list of locales ***\n"; 73 // given as input to setlocale(), later verify the new locale setting by 83 // setlocale() function. 84 echo "-- Testing setlocale() : 'category' argument as LC_ALL & 'locale' argument as an array --\n"; 87 $new_locale = setlocale(LC_ALL, $list_of_locales); 112 *** Testing setlocale() with an array containing list of locales *** [all …]
|
H A D | bug79986.phpt | 5 if (!setlocale(LC_ALL, 'de_DE.ISO-8859-1', 'de-DE')) die('skip German locale not available'); 9 setlocale(LC_ALL, 'de_DE.ISO-8859-1', 'de-DE');
|
/PHP-8.0/ext/pcre/tests/ |
H A D | locales.phpt | 6 if (!@setlocale(LC_ALL, 'pt_PT', 'pt', 'pt_PT.ISO8859-1', 'portuguese')) die('skip pt locale not av… 15 setlocale(LC_ALL, 'C', 'POSIX'); 18 setlocale(LC_ALL, 'pt_PT', 'pt', 'pt_PT.ISO8859-1', 'portuguese'); 21 setlocale(LC_ALL, 'C', 'POSIX');
|
H A D | bug73483.phpt | 6 setlocale(LC_ALL, "C"); 8 setlocale(LC_ALL, "en_US"); 10 setlocale(LC_ALL, "C");
|
H A D | bug76850.phpt | 5 $l = setlocale(LC_CTYPE, 0); 15 $oldlocale = setlocale(LC_CTYPE, 0); 16 setlocale(LC_CTYPE, $oldlocale);
|
H A D | ctype_back_to_c.phpt | 5 if (!setlocale(LC_CTYPE, "de_DE", "de-DE")) die("skip requires de_DE locale"); 9 var_dump(setlocale(LC_CTYPE, "de_DE", "de-DE") !== false); 11 var_dump(setlocale(LC_CTYPE, "C") !== false);
|
/PHP-8.0/ext/intl/tests/ |
H A D | bug67052.phpt | 9 $l = setlocale(LC_ALL, 'de_DE'); 13 setlocale(LC_ALL, $l); 20 setlocale(LC_ALL, 'de_DE.UTF-8'); 24 $res_str .= setlocale(LC_NUMERIC, 0);
|
/PHP-8.0/sapi/cli/tests/ |
H A D | bug44564.phpt | 5 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");
|
/PHP-8.0/Zend/tests/ |
H A D | lc_ctype_inheritance.phpt | 5 if (!setlocale(LC_CTYPE, "de_DE", "de-DE")) die("skip requires de_DE locale"); 12 var_dump(setlocale(LC_CTYPE, "0")); 15 var_dump(setlocale(LC_CTYPE, "de_DE", "de-DE") !== false);
|
/PHP-8.0/ext/gettext/tests/ |
H A D | gettext_dcgettext.phpt | 8 if (!setlocale(LC_ALL, 'en_US.UTF-8')) { 15 setlocale(LC_MESSAGES, 'en_US.UTF-8'); 17 setlocale(LC_ALL, 'en_US.UTF-8');
|
H A D | gettext_dgettext.phpt | 8 if (!setlocale(LC_ALL, 'en_US.UTF-8')) { 15 setlocale(LC_MESSAGES, 'en_US.UTF-8'); 17 setlocale(LC_ALL, 'en_US.UTF-8');
|
/PHP-8.0/tests/lang/ |
H A D | bug30638.phpt | 5 if (setlocale(LC_NUMERIC, "de_DE.UTF-8", "de_DE", "de", "german", "ge", "de_DE.ISO-8859-1") === FAL… 6 print "skip setlocale() failed"; 14 setlocale(LC_NUMERIC, "de_DE.UTF-8", "de_DE", "de", "german", "ge", "de_DE.ISO-8859-1");
|
/PHP-8.0/ext/date/tests/ |
H A D | 009_win32.phpt | 6 if (false === setlocale(LC_TIME, "en-us")) die("skip, couldn't set the locale to en-us"); 12 $loc = setlocale(LC_TIME, "0"); 13 setlocale(LC_TIME, "en-us"); 35 setlocale(LC_TIME, $loc);
|
/PHP-8.0/ext/ctype/tests/ |
H A D | ctype_alnum_basic.phpt | 9 $orig = setlocale(LC_CTYPE, "C"); 17 setlocale(LC_CTYPE, $orig);
|