Skip to content

Commit

Permalink
Check whether setlocale -a is available
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Aug 5, 2020
1 parent 6a5f851 commit ee75524
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/standard/tests/strings/setlocale_variation2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee75524

Please sign in to comment.