Lines Matching refs:setlocale
2 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";
16 echo "\n-- Testing setlocale() function with invalid locale array, 'category' = LC_ALL --\n";
19 var_dump( setlocale(LC_ALL,$invalid_locales) );
21 echo "\n-- Testing setlocale() function with invalid multiple locales, 'category' = LC_ALL --\n";
23 var_dump( setlocale(LC_ALL,"en_US.invalid", "en_AU.invalid", "ko_KR.invalid") );
25 echo "\n-- Testing setlocale() function with locale name too long, 'category' = LC_ALL --";
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 --
41 Warning: setlocale(): Specified locale name is too long in %s on line %d