summaryrefslogtreecommitdiff
path: root/ext/pcre/tests
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2008-12-03 20:30:45 +0000
committerSVN Migration <svn@php.net>2008-12-03 20:30:45 +0000
commit2876046398950e59c3b3c460e67e6fec7ff2ba3c (patch)
tree33b2b8b4b859960a6446ad19d0ada1c55f9cfcda /ext/pcre/tests
parent3fb86b0b9e79e6a3312b694f30ee627e2e1b325c (diff)
downloadphp-git-php-5.3.0alpha2.tar.gz
This commit was manufactured by cvs2svn to create tag 'php_5_3_0alpha2'.php-5.3.0alpha2
Diffstat (limited to 'ext/pcre/tests')
-rw-r--r--ext/pcre/tests/backtrack_limit.phpt2
-rw-r--r--ext/pcre/tests/bug27103.phpt4
-rw-r--r--ext/pcre/tests/invalid_utf8.phpt4
-rw-r--r--ext/pcre/tests/locales.phpt8
-rw-r--r--ext/pcre/tests/pcre_anchored.phpt2
-rw-r--r--ext/pcre/tests/preg_replace2.phpt4
-rw-r--r--ext/pcre/tests/recursion_limit.phpt2
7 files changed, 11 insertions, 15 deletions
diff --git a/ext/pcre/tests/backtrack_limit.phpt b/ext/pcre/tests/backtrack_limit.phpt
index 517e727016..210628f839 100644
--- a/ext/pcre/tests/backtrack_limit.phpt
+++ b/ext/pcre/tests/backtrack_limit.phpt
@@ -1,7 +1,7 @@
--TEST--
Backtracking limit
--SKIPIF--
-<?php
+<?php
if (@preg_match_all('/\p{N}/', '0123456789', $dummy) === false) {
die("skip no support for \p support PCRE library");
}
diff --git a/ext/pcre/tests/bug27103.phpt b/ext/pcre/tests/bug27103.phpt
index 163dc9f1ea..0be4c67d4a 100644
--- a/ext/pcre/tests/bug27103.phpt
+++ b/ext/pcre/tests/bug27103.phpt
@@ -2,8 +2,8 @@
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');
+if (@preg_match_all('/./u', "", $matches) === false) {
+ die("skip no utf8 support in PCRE library");
}
?>
--FILE--
diff --git a/ext/pcre/tests/invalid_utf8.phpt b/ext/pcre/tests/invalid_utf8.phpt
index 56bad834dc..8f9f40bb91 100644
--- a/ext/pcre/tests/invalid_utf8.phpt
+++ b/ext/pcre/tests/invalid_utf8.phpt
@@ -2,8 +2,8 @@
preg_replace() and invalid UTF8
--SKIPIF--
<?php
-if (@preg_match('/./u', '') === false) {
- die('skip no utf8 support in PCRE library');
+if (@preg_match_all('/./u', "", $matches) === false) {
+ die("skip no utf8 support in PCRE library");
}
?>
--FILE--
diff --git a/ext/pcre/tests/locales.phpt b/ext/pcre/tests/locales.phpt
index a1030204ee..6b600236cf 100644
--- a/ext/pcre/tests/locales.phpt
+++ b/ext/pcre/tests/locales.phpt
@@ -1,12 +1,8 @@
--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');
-
-?>
+<?php if (!function_exists('setlocale')) die('skip: setlocale() not available'); ?>
+<?php 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 a609fdbdcd..fd2d7a18b1 100644
--- a/ext/pcre/tests/pcre_anchored.phpt
+++ b/ext/pcre/tests/pcre_anchored.phpt
@@ -1,7 +1,7 @@
--TEST--
A (PCRE_ANCHORED) modififer
--SKIPIF--
-<?php
+<?php
if (@preg_match_all('/\p{N}/', '0123456789', $dummy) === false) {
die("skip no support for \p support PCRE library");
}
diff --git a/ext/pcre/tests/preg_replace2.phpt b/ext/pcre/tests/preg_replace2.phpt
index 4a191f3331..0901c3b024 100644
--- a/ext/pcre/tests/preg_replace2.phpt
+++ b/ext/pcre/tests/preg_replace2.phpt
@@ -2,8 +2,8 @@
preg_replace()
--SKIPIF--
<?php
-if (@preg_match('/./u', '') === false) {
- die('skip no utf8 support in PCRE library');
+if (@preg_match_all('/./u', "", $matches) === false) {
+ die("skip no utf8 support in PCRE library");
}
?>
--FILE--
diff --git a/ext/pcre/tests/recursion_limit.phpt b/ext/pcre/tests/recursion_limit.phpt
index 9933b5c4d7..17bb5bcb67 100644
--- a/ext/pcre/tests/recursion_limit.phpt
+++ b/ext/pcre/tests/recursion_limit.phpt
@@ -1,7 +1,7 @@
--TEST--
PCRE Recursion limit
--SKIPIF--
-<?php
+<?php
if (@preg_match_all('/\p{N}/', '0123456789', $dummy) === false) {
die("skip no support for \p support PCRE library");
}