mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Check whether setlocale -a is available
This commit is contained in:
parent
6a5f8512ac
commit
ee75524bff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user