summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/pcre/tests/bug76850.phpt7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/pcre/tests/bug76850.phpt b/ext/pcre/tests/bug76850.phpt
index ec06ccf897..89a64f9f78 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