Lines Matching refs:setlocale

2 Test setlocale() function : error condition
13 /* Prototype : string setlocale (int $category , string $locale [,string $..] )
14 : string setlocale(int $category , array $locale);
19 echo "*** Testing setlocale() : error conditions ***\n";
22 echo "\n-- Testing setlocale() function with Zero arguments --";
23 var_dump( setlocale());
26 echo "\n-- Testing setlocale() function with One argument, 'category' = LC_ALL --";
27 var_dump( setlocale(LC_ALL) );
29 echo "\n-- Testing setlocale() function with invalid locale array, 'category' = LC_ALL --\n";
32 var_dump( setlocale(LC_ALL,$invalid_locales) );
34 echo "\n-- Testing setlocale() function with invalid multiple locales, 'category' = LC_ALL --\n";
36 var_dump( setlocale(LC_ALL,"en_US.invalid", "en_AU.invalid", "ko_KR.invalid") );
38 echo "\n-- Testing setlocale() function with locale name too long, 'category' = LC_ALL --";
40 var_dump(setlocale(LC_ALL,str_pad('',255,'A')));
45 *** Testing setlocale() : error conditions ***
47 -- Testing setlocale() function with Zero arguments --
48 Warning: setlocale() expects at least 2 parameters, 0 given in %s on line %d
51 -- Testing setlocale() function with One argument, 'category' = LC_ALL --
52 Warning: setlocale() expects at least 2 parameters, 1 given in %s on line %d
55 -- Testing setlocale() function with invalid locale array, 'category' = LC_ALL --
58 -- Testing setlocale() function with invalid multiple locales, 'category' = LC_ALL --
61 -- Testing setlocale() function with locale name too long, 'category' = LC_ALL --
62 Warning: setlocale(): Specified locale name is too long in %s on line %d