com php-src: Check whether setlocale -a is available: ext/standard/tests/strings/setlocale_variation2.phpt

From: Date: Wed, 05 Aug 2020 07:45:21 +0000
Subject: com php-src: Check whether setlocale -a is available: ext/standard/tests/strings/setlocale_variation2.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-112558@lists.php.net to get a copy of this message
Commit: b1ce3d29ff0b8434ebcd032bc81b59ff8f231c88 Author: Nikita Popov <nikita.ppv@gmail.com> Tue, 4 Aug 2020 13:02:52 +0200 Parents: 542ef745333ee27104ce97144b99910add2843c0 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b1ce3d29ff0b8434ebcd032bc81b59ff8f231c88 Log: Check whether setlocale -a is available Changed paths: M ext/standard/tests/strings/setlocale_variation2.phpt Diff: diff --git a/ext/standard/tests/strings/setlocale_variation2.phpt b/ext/standard/tests/strings/setlocale_variation2.phpt index a24551f937..6f62f71ac1 100644 --- a/ext/standard/tests/strings/setlocale_variation2.phpt +++ b/ext/standard/tests/strings/setlocale_variation2.phpt @@ -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

« previous php.cvs (#112558) next »