Skip to content

Commit ee75524

Browse files
committed
Check whether setlocale -a is available
1 parent 6a5f851 commit ee75524

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/standard/tests/strings/setlocale_variation2.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ Test setlocale() function : usage variations - Setting all available locales in
55
if (substr(PHP_OS, 0, 3) == 'WIN') {
66
die('skip Not valid for windows');
77
}
8+
exec("locale -a", $output, $exit_code);
9+
if ($exit_code !== 0) {
10+
die("skip locale -a not available");
11+
}
812
?>
913
--FILE--
1014
<?php

0 commit comments

Comments
 (0)