summaryrefslogtreecommitdiff
path: root/ext/pcre/tests/bug27103.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pcre/tests/bug27103.phpt')
-rw-r--r--ext/pcre/tests/bug27103.phpt6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/pcre/tests/bug27103.phpt b/ext/pcre/tests/bug27103.phpt
index 185225d310..0be4c67d4a 100644
--- a/ext/pcre/tests/bug27103.phpt
+++ b/ext/pcre/tests/bug27103.phpt
@@ -1,5 +1,11 @@
--TEST--
Bug #27103 (preg_split('//u') incorrectly splits UTF-8 strings into octets)
+--SKIPIF--
+<?php
+if (@preg_match_all('/./u', "", $matches) === false) {
+ die("skip no utf8 support in PCRE library");
+}
+?>
--FILE--
<?php
function iter($ar)