diff options
author | Antony Dovgal <tony2001@php.net> | 2007-02-12 14:22:19 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2007-02-12 14:22:19 +0000 |
commit | b877bb70de8b17076a83ef0f28e95be6ec84b9c6 (patch) | |
tree | a25bde0e3ee7492c58f1542507dca60279f3f39c | |
parent | 8e49f0c54cee1a474426aa97edd8e736ae3d6304 (diff) | |
download | php-git-b877bb70de8b17076a83ef0f28e95be6ec84b9c6.tar.gz |
MFH: fix pcre tests
-rw-r--r-- | ext/pcre/tests/backtrack_limit.phpt | 6 | ||||
-rw-r--r-- | ext/pcre/tests/bug27103.phpt | 6 | ||||
-rw-r--r-- | ext/pcre/tests/invalid_utf8.phpt | 6 | ||||
-rw-r--r-- | ext/pcre/tests/pcre_anchored.phpt | 6 | ||||
-rw-r--r-- | ext/pcre/tests/preg_replace2.phpt | 6 | ||||
-rw-r--r-- | ext/pcre/tests/recursion_limit.phpt | 6 |
6 files changed, 36 insertions, 0 deletions
diff --git a/ext/pcre/tests/backtrack_limit.phpt b/ext/pcre/tests/backtrack_limit.phpt index ebfd720c3c..210628f839 100644 --- a/ext/pcre/tests/backtrack_limit.phpt +++ b/ext/pcre/tests/backtrack_limit.phpt @@ -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-- 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) diff --git a/ext/pcre/tests/invalid_utf8.phpt b/ext/pcre/tests/invalid_utf8.phpt index df2de2da9b..8f9f40bb91 100644 --- a/ext/pcre/tests/invalid_utf8.phpt +++ b/ext/pcre/tests/invalid_utf8.phpt @@ -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 diff --git a/ext/pcre/tests/pcre_anchored.phpt b/ext/pcre/tests/pcre_anchored.phpt index caa96437e1..fd2d7a18b1 100644 --- a/ext/pcre/tests/pcre_anchored.phpt +++ b/ext/pcre/tests/pcre_anchored.phpt @@ -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 diff --git a/ext/pcre/tests/preg_replace2.phpt b/ext/pcre/tests/preg_replace2.phpt index 4e2f39f8ca..0901c3b024 100644 --- a/ext/pcre/tests/preg_replace2.phpt +++ b/ext/pcre/tests/preg_replace2.phpt @@ -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 diff --git a/ext/pcre/tests/recursion_limit.phpt b/ext/pcre/tests/recursion_limit.phpt index 2a43aa27d6..17bb5bcb67 100644 --- a/ext/pcre/tests/recursion_limit.phpt +++ b/ext/pcre/tests/recursion_limit.phpt @@ -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-- |