]> granicus.if.org Git - php/commitdiff
Skip test on unsuitable env
authorAnatol Belski <ab@php.net>
Mon, 10 Sep 2018 07:48:18 +0000 (09:48 +0200)
committerAnatol Belski <ab@php.net>
Mon, 10 Sep 2018 07:51:36 +0000 (09:51 +0200)
ext/pcre/tests/bug76850.phpt

index ec06ccf89735d0f007e14e9a2db372e02795bfe0..89a64f9f78395033c6b9a852c5ef856373f026fd 100644 (file)
@@ -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