diff options
author | Felipe Pena <felipe@php.net> | 2008-11-03 13:07:28 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-11-03 13:07:28 +0000 |
commit | ade487e69380ae8d2bcac4afe6d8766cfb988dba (patch) | |
tree | 459dcd500cab5056ff67f356eff026467b923a34 /ext/pcre/tests | |
parent | 963abc546df33c01344e5b925fd1a3d5201968b3 (diff) | |
download | php-git-ade487e69380ae8d2bcac4afe6d8766cfb988dba.tar.gz |
- Opss, reverted accidental changes
Diffstat (limited to 'ext/pcre/tests')
-rw-r--r-- | ext/pcre/tests/007.phpt | 6 | ||||
-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/invalid_utf8_offset.phpt | 6 | ||||
-rw-r--r-- | ext/pcre/tests/locales.phpt | 7 | ||||
-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 |
9 files changed, 55 insertions, 0 deletions
diff --git a/ext/pcre/tests/007.phpt b/ext/pcre/tests/007.phpt index 97d4633a12..776bec27b2 100644 --- a/ext/pcre/tests/007.phpt +++ b/ext/pcre/tests/007.phpt @@ -1,5 +1,11 @@ --TEST-- preg_replace_callback() with callback that modifies subject string +--SKIPIF-- +<?php +if (@preg_match('/./u', '') === false) { + die('skip no utf8 support in PCRE library'); +} +?> --FILE-- <?php diff --git a/ext/pcre/tests/backtrack_limit.phpt b/ext/pcre/tests/backtrack_limit.phpt index ebfd720c3c..517e727016 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..163dc9f1ea 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('/./u', '') === 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..56bad834dc 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('/./u', '') === false) { + die('skip no utf8 support in PCRE library'); +} +?> --FILE-- <?php diff --git a/ext/pcre/tests/invalid_utf8_offset.phpt b/ext/pcre/tests/invalid_utf8_offset.phpt index 30fe7029da..4e0d40caf4 100644 --- a/ext/pcre/tests/invalid_utf8_offset.phpt +++ b/ext/pcre/tests/invalid_utf8_offset.phpt @@ -1,5 +1,11 @@ --TEST-- preg_replace() and invalid UTF8 offset +--SKIPIF-- +<?php +if (@preg_match('/./u', '') === false) { + die('skip no utf8 support in PCRE library'); +} +?> --FILE-- <?php diff --git a/ext/pcre/tests/locales.phpt b/ext/pcre/tests/locales.phpt index 647c0d8f7e..a1030204ee 100644 --- a/ext/pcre/tests/locales.phpt +++ b/ext/pcre/tests/locales.phpt @@ -1,5 +1,12 @@ --TEST-- Localized match +--SKIPIF-- +<?php + +if (!function_exists('setlocale')) die('skip: setlocale() not available'); +if (!@setlocale(LC_ALL, 'pt_PT', 'pt', 'pt_PT.ISO8859-1', 'portuguese')) die('skip pt locale not available'); + +?> --FILE-- <?php diff --git a/ext/pcre/tests/pcre_anchored.phpt b/ext/pcre/tests/pcre_anchored.phpt index caa96437e1..a609fdbdcd 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..4a191f3331 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('/./u', '') === 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..9933b5c4d7 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-- |