mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
Check whether setlocale -a is available
This commit is contained in:
parent
542ef74533
commit
b1ce3d29ff
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue