tony2001 Mon Feb 12 14:22:02 2007 UTC
Modified files:
/php-src/ext/pcre/tests backtrack_limit.phpt bug27103.phpt
invalid_utf8.phpt pcre_anchored.phpt
preg_replace2.phpt recursion_limit.phpt
Log:
add SKIPIF sections to check if PCRE has the functionality tested/used
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/tests/backtrack_limit.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/pcre/tests/backtrack_limit.phpt
diff -u php-src/ext/pcre/tests/backtrack_limit.phpt:1.2
php-src/ext/pcre/tests/backtrack_limit.phpt:1.3
--- php-src/ext/pcre/tests/backtrack_limit.phpt:1.2 Tue Jun 13 22:05:26 2006
+++ php-src/ext/pcre/tests/backtrack_limit.phpt Mon Feb 12 14:22:02 2007
@@ -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--
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/tests/bug27103.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/pcre/tests/bug27103.phpt
diff -u php-src/ext/pcre/tests/bug27103.phpt:1.1
php-src/ext/pcre/tests/bug27103.phpt:1.2
--- php-src/ext/pcre/tests/bug27103.phpt:1.1 Sun Feb 1 03:03:15 2004
+++ php-src/ext/pcre/tests/bug27103.phpt Mon Feb 12 14:22:02 2007
@@ -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)
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/tests/invalid_utf8.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/pcre/tests/invalid_utf8.phpt
diff -u php-src/ext/pcre/tests/invalid_utf8.phpt:1.1
php-src/ext/pcre/tests/invalid_utf8.phpt:1.2
--- php-src/ext/pcre/tests/invalid_utf8.phpt:1.1 Mon May 29 20:31:33 2006
+++ php-src/ext/pcre/tests/invalid_utf8.phpt Mon Feb 12 14:22:02 2007
@@ -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
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/tests/pcre_anchored.phpt?r1=1.3&r2=1.4&diff_format=u
Index: php-src/ext/pcre/tests/pcre_anchored.phpt
diff -u php-src/ext/pcre/tests/pcre_anchored.phpt:1.3
php-src/ext/pcre/tests/pcre_anchored.phpt:1.4
--- php-src/ext/pcre/tests/pcre_anchored.phpt:1.3 Tue Aug 29 22:12:31 2006
+++ php-src/ext/pcre/tests/pcre_anchored.phpt Mon Feb 12 14:22:02 2007
@@ -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
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/tests/preg_replace2.phpt?r1=1.5&r2=1.6&diff_format=u
Index: php-src/ext/pcre/tests/preg_replace2.phpt
diff -u php-src/ext/pcre/tests/preg_replace2.phpt:1.5
php-src/ext/pcre/tests/preg_replace2.phpt:1.6
--- php-src/ext/pcre/tests/preg_replace2.phpt:1.5 Tue Oct 10 12:43:34 2006
+++ php-src/ext/pcre/tests/preg_replace2.phpt Mon Feb 12 14:22:02 2007
@@ -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
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/tests/recursion_limit.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/pcre/tests/recursion_limit.phpt
diff -u php-src/ext/pcre/tests/recursion_limit.phpt:1.2
php-src/ext/pcre/tests/recursion_limit.phpt:1.3
--- php-src/ext/pcre/tests/recursion_limit.phpt:1.2 Tue Jun 13 22:05:26 2006
+++ php-src/ext/pcre/tests/recursion_limit.phpt Mon Feb 12 14:22:02 2007
@@ -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--
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php