]> granicus.if.org Git - php/commitdiff
MFH: fix pcre tests
authorAntony Dovgal <tony2001@php.net>
Mon, 12 Feb 2007 14:22:19 +0000 (14:22 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 12 Feb 2007 14:22:19 +0000 (14:22 +0000)
ext/pcre/tests/backtrack_limit.phpt
ext/pcre/tests/bug27103.phpt
ext/pcre/tests/invalid_utf8.phpt
ext/pcre/tests/pcre_anchored.phpt
ext/pcre/tests/preg_replace2.phpt
ext/pcre/tests/recursion_limit.phpt

index ebfd720c3cf063d0a9e77665bb3e15bca8001096..210628f8395a8dd495ca3804710d8e2f3fa1a24a 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 Backtracking limit
+--SKIPIF--
+<?php 
+if (@preg_match_all('/\p{N}/', '0123456789', $dummy) === false) {
+       die("skip no support for \p support PCRE library");
+}
+?>
 --INI--
 pcre.backtrack_limit=2
 --FILE--
index 185225d31082b908fcb384ccd47dd00e6994ff9c..0be4c67d4ada10033275be0a4d92c151e64ef0c1 100644 (file)
@@ -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)
index df2de2da9b3592c2a9e4fc74522641c282b3bd86..8f9f40bb9159c79b99de4d19ef1a785ba72176bc 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 preg_replace() and invalid UTF8
+--SKIPIF--
+<?php
+if (@preg_match_all('/./u', "", $matches) === false) {
+       die("skip no utf8 support in PCRE library");
+}
+?>
 --FILE--
 <?php
 
index caa96437e19e79e5e331cbe5622682b2143e47df..fd2d7a18b1b371ca46565ab38294bd6ffb4f1d88 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 A (PCRE_ANCHORED) modififer
+--SKIPIF--
+<?php 
+if (@preg_match_all('/\p{N}/', '0123456789', $dummy) === false) {
+       die("skip no support for \p support PCRE library");
+}
+?>
 --FILE--
 <?php
 
index 4e2f39f8ca7b3e4d2d795a7add26f8305f6d101f..0901c3b0243ea17f7d2f28fb2db5de9389606d9d 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 preg_replace()
+--SKIPIF--
+<?php
+if (@preg_match_all('/./u', "", $matches) === false) {
+       die("skip no utf8 support in PCRE library");
+}
+?>
 --FILE--
 <?php
 
index 2a43aa27d6bd69b13a9f518f23c0eea4bc141513..17bb5bcb678793692a815d145e422aa4d50acc4d 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 PCRE Recursion limit
+--SKIPIF--
+<?php 
+if (@preg_match_all('/\p{N}/', '0123456789', $dummy) === false) {
+       die("skip no support for \p support PCRE library");
+}
+?>
 --INI--
 pcre.recursion_limit=2
 --FILE--