Check whether setlocale -a is available

This commit is contained in:
Nikita Popov 2020-08-04 13:02:52 +02:00
parent 6a5f8512ac
commit ee75524bff

View File

@ -5,6 +5,10 @@ Test setlocale() function : usage variations - Setting all available locales in
if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip Not valid for windows');
}
exec("locale -a", $output, $exit_code);
if ($exit_code !== 0) {
die("skip locale -a not available");
}
?>
--FILE--
<?php