summaryrefslogtreecommitdiff
path: root/ext/pcre/tests
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pcre/tests')
-rw-r--r--ext/pcre/tests/preg_grep_basic.phpt1
-rw-r--r--ext/pcre/tests/preg_grep_error1.phpt1
-rw-r--r--ext/pcre/tests/preg_match_all_basic.phpt1
-rw-r--r--ext/pcre/tests/preg_match_all_edit_basic.phpt6
-rw-r--r--ext/pcre/tests/preg_match_all_error1.phpt1
-rw-r--r--ext/pcre/tests/preg_match_all_error2.phpt1
-rw-r--r--ext/pcre/tests/preg_match_all_error3.phpt1
-rw-r--r--ext/pcre/tests/preg_match_basic.phpt5
-rw-r--r--ext/pcre/tests/preg_match_basic_002.phpt5
-rw-r--r--ext/pcre/tests/preg_match_basic_edit.phpt7
-rw-r--r--ext/pcre/tests/preg_match_error1.phpt5
-rw-r--r--ext/pcre/tests/preg_match_error2.phpt5
-rw-r--r--ext/pcre/tests/preg_match_latin.phpt5
-rw-r--r--ext/pcre/tests/preg_match_variation1.phpt5
-rw-r--r--ext/pcre/tests/preg_quote_basic.phpt1
-rw-r--r--ext/pcre/tests/preg_replace_basic.phpt1
-rw-r--r--ext/pcre/tests/preg_replace_callback_basic.phpt1
-rw-r--r--ext/pcre/tests/preg_replace_callback_error1.phpt1
-rw-r--r--ext/pcre/tests/preg_replace_edit_basic.phpt6
-rw-r--r--ext/pcre/tests/preg_replace_error1.phpt1
-rw-r--r--ext/pcre/tests/preg_replace_error2.phpt1
-rw-r--r--ext/pcre/tests/preg_replace_variation1.phpt1
-rw-r--r--ext/pcre/tests/preg_split_basic.phpt1
-rw-r--r--ext/pcre/tests/preg_split_error1.phpt1
24 files changed, 4 insertions, 60 deletions
diff --git a/ext/pcre/tests/preg_grep_basic.phpt b/ext/pcre/tests/preg_grep_basic.phpt
index 4874aa8ab6..435c3500d4 100644
--- a/ext/pcre/tests/preg_grep_basic.phpt
+++ b/ext/pcre/tests/preg_grep_basic.phpt
@@ -3,7 +3,6 @@ Test preg_grep() function : basic functionality
--FILE--
<?php
/*
-* proto array preg_grep(string regex, array input [, int flags])
* Function is implemented in ext/pcre/php_pcre.c
*/
$array = array('HTTP://WWW.EXAMPLE.COM', '/index.html', '/info/stat/', 'http://test.uk.com/index/html', '/display/dept.php');
diff --git a/ext/pcre/tests/preg_grep_error1.phpt b/ext/pcre/tests/preg_grep_error1.phpt
index 0d7b5e1b8b..1215c24f00 100644
--- a/ext/pcre/tests/preg_grep_error1.phpt
+++ b/ext/pcre/tests/preg_grep_error1.phpt
@@ -3,7 +3,6 @@ Test preg_grep() function : error conditions - bad regular expressions
--FILE--
<?php
/*
-* proto array preg_grep(string regex, array input [, int flags])
* Function is implemented in ext/pcre/php_pcre.c
*/
/*
diff --git a/ext/pcre/tests/preg_match_all_basic.phpt b/ext/pcre/tests/preg_match_all_basic.phpt
index 63e9b6a6dd..9f02fb2027 100644
--- a/ext/pcre/tests/preg_match_all_basic.phpt
+++ b/ext/pcre/tests/preg_match_all_basic.phpt
@@ -3,7 +3,6 @@ Test preg_match_all() function : basic functionality
--FILE--
<?php
/*
-* proto int preg_match_all(string pattern, string subject, [array subpatterns [, int flags [, int offset]]])
* Function is implemented in ext/pcre/php_pcre.c
*/
$string = 'Hello, world! This is a test. This is another test. \[4]. 34534 string.';
diff --git a/ext/pcre/tests/preg_match_all_edit_basic.phpt b/ext/pcre/tests/preg_match_all_edit_basic.phpt
index 27034f90f1..02e658e941 100644
--- a/ext/pcre/tests/preg_match_all_edit_basic.phpt
+++ b/ext/pcre/tests/preg_match_all_edit_basic.phpt
@@ -2,12 +2,6 @@
Test preg_match_all() function : basic functionality
--FILE--
<?php
-/* Prototype : proto int preg_match_all(string pattern, string subject, array subpatterns [, int flags [, int offset]])
- * Description: Perform a Perl-style global regular expression match
- * Source code: ext/pcre/php_pcre.c
- * Alias to functions:
-*/
-
$string = 'Hello, world! This is a test. This is another test. \[4]. 34534 string.';
var_dump(preg_match_all('/[0-35-9]/', $string, $match1, PREG_OFFSET_CAPTURE|PREG_PATTERN_ORDER, -10)); //finds any digit that's not 4 10 digits from the end(1 match)
diff --git a/ext/pcre/tests/preg_match_all_error1.phpt b/ext/pcre/tests/preg_match_all_error1.phpt
index 055579cb68..d25bfe99c6 100644
--- a/ext/pcre/tests/preg_match_all_error1.phpt
+++ b/ext/pcre/tests/preg_match_all_error1.phpt
@@ -3,7 +3,6 @@ Test preg_match_all() function : error conditions - bad regular expressions
--FILE--
<?php
/*
-* proto int preg_match_all(string pattern, string subject, array subpatterns [, int flags [, int offset]])
* Function is implemented in ext/pcre/php_pcre.c
*/
/*
diff --git a/ext/pcre/tests/preg_match_all_error2.phpt b/ext/pcre/tests/preg_match_all_error2.phpt
index a2254555bb..bffd84552e 100644
--- a/ext/pcre/tests/preg_match_all_error2.phpt
+++ b/ext/pcre/tests/preg_match_all_error2.phpt
@@ -3,7 +3,6 @@ Test preg_match_all() function : error conditions - wrong arg types
--FILE--
<?php
/*
-* proto int preg_match_all(string pattern, string subject, array subpatterns [, int flags [, int offset]])
* Function is implemented in ext/pcre/php_pcre.c
*/
/*
diff --git a/ext/pcre/tests/preg_match_all_error3.phpt b/ext/pcre/tests/preg_match_all_error3.phpt
index 2a25b47205..b0ad8c3085 100644
--- a/ext/pcre/tests/preg_match_all_error3.phpt
+++ b/ext/pcre/tests/preg_match_all_error3.phpt
@@ -3,7 +3,6 @@ Test preg_match_all() function : error conditions
--FILE--
<?php
/*
-* proto int preg_match_all(string pattern, string subject, array subpatterns [, int flags [, int offset]])
* Function is implemented in ext/pcre/php_pcre.c
*/
/*
diff --git a/ext/pcre/tests/preg_match_basic.phpt b/ext/pcre/tests/preg_match_basic.phpt
index a0015f129e..fd9dc8cc96 100644
--- a/ext/pcre/tests/preg_match_basic.phpt
+++ b/ext/pcre/tests/preg_match_basic.phpt
@@ -2,10 +2,7 @@
Test preg_match() function : basic functionality
--FILE--
<?php
-/*
- * proto int preg_match(string pattern, string subject [, array subpatterns [, int flags [, int offset]]])
- * Function is implemented in ext/pcre/php_pcre.c
-*/
+/* Function is implemented in ext/pcre/php_pcre.c */
$string = 'Hello, world. [*], this is \ a string';
var_dump(preg_match('/^[hH]ello,\s/', $string, $match1)); //finds "Hello, "
var_dump($match1);
diff --git a/ext/pcre/tests/preg_match_basic_002.phpt b/ext/pcre/tests/preg_match_basic_002.phpt
index 7aa125bda0..d91bdce836 100644
--- a/ext/pcre/tests/preg_match_basic_002.phpt
+++ b/ext/pcre/tests/preg_match_basic_002.phpt
@@ -2,11 +2,6 @@
preg_match() single line match with multi-line input
--FILE--
<?php
-/* Prototype : int preg_match ( string $pattern , string $subject [, array &$matches [, int $flags [, int $offset ]]] )
- * Description: Perform a regular expression match
- * Source code: ext/pcre/php_pcre.c
- */
-
$string = "My\nName\nIs\nStrange";
preg_match("/M(.*)/", $string, $matches);
diff --git a/ext/pcre/tests/preg_match_basic_edit.phpt b/ext/pcre/tests/preg_match_basic_edit.phpt
index e06bb4005c..0471ffb0b7 100644
--- a/ext/pcre/tests/preg_match_basic_edit.phpt
+++ b/ext/pcre/tests/preg_match_basic_edit.phpt
@@ -2,13 +2,6 @@
Test preg_match() function : basic functionality
--FILE--
<?php
-/* Prototype : proto int preg_match(string pattern, string subject [, array subpatterns [, int flags [, int offset]]])
- * Description: Perform a Perl-style regular expression match
- * Source code: ext/pcre/php_pcre.c
- * Alias to functions:
-*/
-
-
$string = 'Hello, world. [*], this is \ a string';
var_dump(preg_match('/^[hH]ello,\s/', $string, $match1)); //finds "Hello, "
diff --git a/ext/pcre/tests/preg_match_error1.phpt b/ext/pcre/tests/preg_match_error1.phpt
index 011ba6f97b..7a7106270f 100644
--- a/ext/pcre/tests/preg_match_error1.phpt
+++ b/ext/pcre/tests/preg_match_error1.phpt
@@ -2,10 +2,7 @@
Test preg_match() function : error conditions - bad regular expressions
--FILE--
<?php
-/*
- * proto int preg_match(string pattern, string subject [, array subpatterns [, int flags [, int offset]]])
- * Function is implemented in ext/pcre/php_pcre.c
-*/
+/* Function is implemented in ext/pcre/php_pcre.c */
/*
* Testing how preg_match reacts to being passed the wrong type of regex argument
*/
diff --git a/ext/pcre/tests/preg_match_error2.phpt b/ext/pcre/tests/preg_match_error2.phpt
index ebc91d97fd..48aafd3713 100644
--- a/ext/pcre/tests/preg_match_error2.phpt
+++ b/ext/pcre/tests/preg_match_error2.phpt
@@ -2,10 +2,7 @@
Test preg_match() function : error conditions - wrong arg types
--FILE--
<?php
-/*
- * proto int preg_match(string pattern, string subject [, array subpatterns [, int flags [, int offset]]])
- * Function is implemented in ext/pcre/php_pcre.c
-*/
+/* Function is implemented in ext/pcre/php_pcre.c */
/*
* Testing how preg_match reacts to being passed the wrong type of subject argument
*/
diff --git a/ext/pcre/tests/preg_match_latin.phpt b/ext/pcre/tests/preg_match_latin.phpt
index 8f1d1899cb..4685470d21 100644
--- a/ext/pcre/tests/preg_match_latin.phpt
+++ b/ext/pcre/tests/preg_match_latin.phpt
@@ -2,11 +2,6 @@
preg_match() single line match with latin input
--FILE--
<?php
-/* Prototype : int preg_match ( string $pattern , string $subject [, array &$matches [, int $flags [, int $offset ]]] )
- * Description: Perform a regular expression match
- * Source code: ext/pcre/php_pcre.c
- */
-
preg_match('/^[\w\p{Cyrillic}\s\-\']+$/u', 'latin', $test1);
preg_match('/^[\w\p{Cyrillic}\s\-\']+$/u', 'кириллица', $test2);
preg_match('/^[\w\s\-\']+$/u', 'latin', $test3);
diff --git a/ext/pcre/tests/preg_match_variation1.phpt b/ext/pcre/tests/preg_match_variation1.phpt
index 91c7841ff7..d9375ddd24 100644
--- a/ext/pcre/tests/preg_match_variation1.phpt
+++ b/ext/pcre/tests/preg_match_variation1.phpt
@@ -2,10 +2,7 @@
Test preg_match() function : variation
--FILE--
<?php
-/*
- * proto int preg_match(string pattern, string subject [, array subpatterns [, int flags [, int offset]]])
- * Function is implemented in ext/pcre/php_pcre.c
-*/
+/* Function is implemented in ext/pcre/php_pcre.c */
//test passing in the same variable where 1 is by value, the other is a different
//type and by reference so should be updated to the new type.
diff --git a/ext/pcre/tests/preg_quote_basic.phpt b/ext/pcre/tests/preg_quote_basic.phpt
index bdcd933428..7f5136d5e2 100644
--- a/ext/pcre/tests/preg_quote_basic.phpt
+++ b/ext/pcre/tests/preg_quote_basic.phpt
@@ -3,7 +3,6 @@ Test preg_quote() function : basic functionality
--FILE--
<?php
/*
-* proto string preg_quote(string str [, string delim_char])
* Function is implemented in ext/pcre/php_pcre.c
*/
$string_before = '/this *-has \ metacharacters^ in $';
diff --git a/ext/pcre/tests/preg_replace_basic.phpt b/ext/pcre/tests/preg_replace_basic.phpt
index 266bd0eebd..1e5ba8b23f 100644
--- a/ext/pcre/tests/preg_replace_basic.phpt
+++ b/ext/pcre/tests/preg_replace_basic.phpt
@@ -3,7 +3,6 @@ Test preg_replace() function : basic functionality
--FILE--
<?php
/*
-* proto string preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, count]])
* Function is implemented in ext/pcre/php_pcre.c
*/
$string = '123456789 - Hello, world - This is a string.';
diff --git a/ext/pcre/tests/preg_replace_callback_basic.phpt b/ext/pcre/tests/preg_replace_callback_basic.phpt
index c89fa8c12c..79bedb00bd 100644
--- a/ext/pcre/tests/preg_replace_callback_basic.phpt
+++ b/ext/pcre/tests/preg_replace_callback_basic.phpt
@@ -3,7 +3,6 @@ Test preg_replace_callback() function : basic functionality
--FILE--
<?php
/*
-* proto string preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, count]])
* Function is implemented in ext/pcre/php_pcre.c
*/
/*
diff --git a/ext/pcre/tests/preg_replace_callback_error1.phpt b/ext/pcre/tests/preg_replace_callback_error1.phpt
index 120944b33b..eb6478e506 100644
--- a/ext/pcre/tests/preg_replace_callback_error1.phpt
+++ b/ext/pcre/tests/preg_replace_callback_error1.phpt
@@ -3,7 +3,6 @@ Test preg_replace_callback() function : error
--FILE--
<?php
/*
-* proto string preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, count]])
* Function is implemented in ext/pcre/php_pcre.c
*/
/*
diff --git a/ext/pcre/tests/preg_replace_edit_basic.phpt b/ext/pcre/tests/preg_replace_edit_basic.phpt
index d5a251392a..ac7b1d4a92 100644
--- a/ext/pcre/tests/preg_replace_edit_basic.phpt
+++ b/ext/pcre/tests/preg_replace_edit_basic.phpt
@@ -2,12 +2,6 @@
Test preg_replace() function : basic
--FILE--
<?php
-/* Prototype : proto string preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, count]])
- * Description: Perform Perl-style regular expression replacement.
- * Source code: ext/pcre/php_pcre.c
- * Alias to functions:
-*/
-
$string = '123456789 - Hello, world - This is a string.';
var_dump($string);
diff --git a/ext/pcre/tests/preg_replace_error1.phpt b/ext/pcre/tests/preg_replace_error1.phpt
index 669a5c6c4e..39d0b692e7 100644
--- a/ext/pcre/tests/preg_replace_error1.phpt
+++ b/ext/pcre/tests/preg_replace_error1.phpt
@@ -3,7 +3,6 @@ Test preg_replace() function : error - bad regular expressions
--FILE--
<?php
/*
-* proto string preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, count]])
* Function is implemented in ext/pcre/php_pcre.c
*/
/*
diff --git a/ext/pcre/tests/preg_replace_error2.phpt b/ext/pcre/tests/preg_replace_error2.phpt
index d7748bf954..0aefff9df6 100644
--- a/ext/pcre/tests/preg_replace_error2.phpt
+++ b/ext/pcre/tests/preg_replace_error2.phpt
@@ -3,7 +3,6 @@ Test preg_replace() function : error conditions - wrong arg types
--FILE--
<?php
/*
-* proto string preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, count]])
* Function is implemented in ext/pcre/php_pcre.c
*/
/*
diff --git a/ext/pcre/tests/preg_replace_variation1.phpt b/ext/pcre/tests/preg_replace_variation1.phpt
index d99cc63212..91aa8432b7 100644
--- a/ext/pcre/tests/preg_replace_variation1.phpt
+++ b/ext/pcre/tests/preg_replace_variation1.phpt
@@ -3,7 +3,6 @@ Test preg_replace() function : variation both arguments are arrays
--FILE--
<?php
/*
-* proto string preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, count]])
* Function is implemented in ext/pcre/php_pcre.c
*/
/*
diff --git a/ext/pcre/tests/preg_split_basic.phpt b/ext/pcre/tests/preg_split_basic.phpt
index c33640920b..6f1568a680 100644
--- a/ext/pcre/tests/preg_split_basic.phpt
+++ b/ext/pcre/tests/preg_split_basic.phpt
@@ -3,7 +3,6 @@ Test preg_split() function : basic functionality
--FILE--
<?php
/*
-* proto array preg_split(string pattern, string subject [, int limit [, int flags]])
* Function is implemented in ext/pcre/php_pcre.c
*/
$string = 'this is a_list: value1, Test__, string; Hello, world!_(parentheses)';
diff --git a/ext/pcre/tests/preg_split_error1.phpt b/ext/pcre/tests/preg_split_error1.phpt
index 552b668082..4d0fb9e22a 100644
--- a/ext/pcre/tests/preg_split_error1.phpt
+++ b/ext/pcre/tests/preg_split_error1.phpt
@@ -3,7 +3,6 @@ Test preg_split() function : error conditions - bad regular expressions
--FILE--
<?php
/*
-* proto array preg_split(string pattern, string subject [, int limit [, int flags]])
* Function is implemented in ext/pcre/php_pcre.c
*/
/*