1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00

Check whether setlocale -a is available

This commit is contained in:
Nikita Popov
2020-08-04 13:02:52 +02:00
parent 542ef74533
commit b1ce3d29ff

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