com php-src: Skip test on unsuitable env: ext/pcre/tests/bug76850.phpt
| From: | Anatol Belski | Date: | Mon, 10 Sep 2018 07:51:36 +0000 |
| Subject: | com php-src: Skip test on unsuitable env: ext/pcre/tests/bug76850.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-103041@lists.php.net to get a copy of this message | ||
Commit: 27b270de896be6dbe3ce70866421d704cbee4c6f
Author: Anatol Belski <ab@php.net> Mon, 10 Sep 2018 09:48:18 +0200
Parents: af38a991ffad0a4a19704d53f422bbef7b693ba5
Branches: PHP-7.3 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=27b270de896be6dbe3ce70866421d704cbee4c6f
Log:
Skip test on unsuitable env
Changed paths:
M ext/pcre/tests/bug76850.phpt
Diff:
diff --git a/ext/pcre/tests/bug76850.phpt b/ext/pcre/tests/bug76850.phpt
index ec06ccf..89a64f9 100644
--- a/ext/pcre/tests/bug76850.phpt
+++ b/ext/pcre/tests/bug76850.phpt
@@ -1,5 +1,12 @@
--TEST--
Bug #76850 Exit code mangled by set locale/preg_match
+--SKIPIF--
+<?php
+ $l = setlocale(LC_CTYPE, 0);
+ if ("C" == $l) {
+ die("skip need the current locale to be other than C");
+ }
+?>
--FILE--
<?php