/PHP-8.2/ext/pcre/tests/ |
H A D | preg_match_all_error3.phpt | 2 Test preg_match_all() function : error conditions 9 * Testing how preg_match_all reacts to being passed the wrong type of subpatterns array argument 11 echo "*** Testing preg_match_all() : error conditions ***\n"; 14 var_dump(preg_match_all($regex, $subject, 'test')); 18 *** Testing preg_match_all() : error conditions *** 20 Fatal error: Uncaught Error: preg_match_all(): Argument #3 ($matches) cannot be passed by reference…
|
H A D | preg_match_all_error1.phpt | 2 Test preg_match_all() function : error conditions - bad regular expressions 9 * Testing how preg_match_all reacts to being passed the wrong type of regex argument 11 echo "*** Testing preg_match_all() : error conditions ***\n"; 22 var_dump(preg_match_all($regex_value, $subject, $matches1)); 30 var_dump(preg_match_all($regex_value, $subject, $matches)); 37 *** Testing preg_match_all() : error conditions *** 47 Warning: preg_match_all(): No ending delimiter '/' found in %spreg_match_all_error1.php on line %d 53 Warning: preg_match_all(): Unknown modifier '/' in %spreg_match_all_error1.php on line %d 59 Warning: preg_match_all(): Unknown modifier 'F' in %spreg_match_all_error1.php on line %d 64 preg_match_all(): Argument #1 ($pattern) must be of type string, array given [all …]
|
H A D | preg_match_all_basic.phpt | 2 Test preg_match_all() function : basic functionality 9 var_dump(preg_match_all('/[0-35-9]/', $string, $match1, PREG_OFFSET_CAPTURE|PREG_PATTERN_ORDER, -10… 11 var_dump(preg_match_all('/[tT]his is a(.*?)\./', $string, $match2, PREG_SET_ORDER)); //finds "This … 13 var_dump(preg_match_all('@\. \\\(.*).@', $string, $match3, PREG_PATTERN_ORDER)); //finds ".\ [...]"… 15 var_dump(preg_match_all('/\d{2}$/', $string, $match4)); //tries to find 2 digits at the end of a st… 17 var_dump(preg_match_all('/(This is a ){2}(.*)\stest/', $string, $match5)); //tries to find "This is… 21 var_dump(preg_match_all('/test/', $string)); 22 var_dump(preg_match_all('/this isn\'t in the string/', $string)); 23 var_dump(preg_match_all('/world/', $string)); 24 var_dump(preg_match_all('/[0-9]/', $string));
|
H A D | multiline.phpt | 6 var_dump(preg_match_all('/^.{2,3}$/', "aei\nou", $dummy)); 7 var_dump(preg_match_all('/^.{2,3}$/', "aei\nou\n", $dummy)); 8 var_dump(preg_match_all('/^.{2,3}$/m', "aei\nou", $dummy)); 9 var_dump(preg_match_all('/^.{2,3}$/m', "aei\nou\n", $dummy));
|
H A D | preg_match_all_error2.phpt | 2 Test preg_match_all() function : error conditions - wrong arg types 9 * Testing how preg_match_all reacts to being passed the wrong type of input argument 11 echo "*** Testing preg_match_all() : error conditions ***\n"; 17 var_dump(preg_match_all($regex, $value, $matches)); 26 *** Testing preg_match_all() : error conditions *** 29 preg_match_all(): Argument #2 ($subject) must be of type string, array given
|
H A D | errors04.phpt | 2 Test preg_match_all() function : error conditions - Backtracking limit 5 if (@preg_match_all('/\p{N}/', '0123456789', $dummy) === false) { 15 var_dump(preg_match_all('/.*\p{N}/', '0123456789', $dummy)); 18 var_dump(preg_match_all('/\p{Nd}/', '0123456789', $dummy));
|
H A D | match_flags.phpt | 2 preg_match_all() flags 6 var_dump(preg_match_all('/(.)x/', 'zxax', $match, PREG_PATTERN_ORDER)); 9 var_dump(preg_match_all('/(.)x/', 'zxyx', $match, PREG_SET_ORDER)); 12 var_dump(preg_match_all('/(.)x/', 'zxyx', $match, PREG_OFFSET_CAPTURE)); 15 var_dump(preg_match_all('/(.)x/', 'zxyx', $match, PREG_SET_ORDER | PREG_OFFSET_CAPTURE));
|
H A D | bug42298.phpt | 6 preg_match_all('/\S\S/u', $str, $m); var_dump($m); 7 preg_match_all('/\S{2}/u', $str, $m); var_dump($m); 10 preg_match_all('/\W\W/u', $str, $m); var_dump($m); 11 preg_match_all('/\W{2}/u', $str, $m); var_dump($m);
|
H A D | preg_match_all_edit_basic.phpt | 2 Test preg_match_all() function : basic functionality 7 var_dump(preg_match_all('/[0-35-9]/', $string, $match1, PREG_OFFSET_CAPTURE|PREG_PATTERN_ORDER, -10… 10 var_dump(preg_match_all('/[tT]his is a(.*?)\./', $string, $match2, PREG_SET_ORDER)); //fin… 13 var_dump(preg_match_all('@\. \\\(.*).@', $string, $match3, PREG_PATTERN_ORDER)); //f… 16 var_dump(preg_match_all('/\d{2}$/', $string, $match4)); //tries to find 2 digits at the en… 19 var_dump(preg_match_all('/(This is a ){2}(.*)\stest/', $string, $match5)); //tries to find "T…
|
H A D | dollar_endonly.phpt | 6 var_dump(preg_match_all('/^\S+.+$/', "aeiou\n", $m)); 9 var_dump(preg_match_all('/^\S+.+$/D', "aeiou\n", $m)); 12 var_dump(preg_match_all('/^\S+\s$/D', "aeiou\n", $m));
|
H A D | backtrack_limit.phpt | 5 if (@preg_match_all('/\p{N}/', '0123456789', $dummy) === false) { 15 var_dump(preg_match_all('/.*\p{N}/', '0123456789', $dummy)); 18 var_dump(preg_match_all('/\p{Nd}/', '0123456789', $dummy));
|
H A D | bug41638.phpt | 7 preg_match_all("/(['\"])((.*(\\\\\\1)*)*)\\1/sU",$str,$str_instead); 11 preg_match_all("/(['\"])((?:\\\\\\1|.)*)\\1/sU", $str, $str_instead); 14 preg_match_all("/(['\"])(.*)(?<!\\\\)\\1/sU", $str, $str_instead);
|
H A D | recursion_limit.phpt | 5 if (@preg_match_all('/\p{N}/', '0123456789', $dummy) === false) { 15 var_dump(preg_match_all('/\p{Ll}(\p{L}((\p{Ll}\p{Ll})))/', 'aeiou', $dummy)); 18 var_dump(preg_match_all('/\p{Ll}\p{L}\p{Ll}\p{Ll}/', 'aeiou', $dummy));
|
H A D | gh16189.phpt | 2 GH-16189 (preg_match/preg_match_all underflow on start_offset argument) 12 …preg_match_all( '/<(\w+)[\s\w\-]+ id="S44_i89ew">/', '<br><div id="S44_i89ew">', $matches, 0, PHP_… 19 preg_match_all(): Argument #5 ($offset) must be greater than %s
|
H A D | bug61780_1.phpt | 11 preg_match_all('/(4)?(2)?\d/', '123456', $matches, PREG_UNMATCHED_AS_NULL); 14 preg_match_all('/(4)?(2)?\d/', '123456', $matches, PREG_OFFSET_CAPTURE | PREG_UNMATCHED_AS_NULL); 17 preg_match_all('/(4)?(2)?\d/', '123456', $matches, PREG_SET_ORDER | PREG_UNMATCHED_AS_NULL); 20 preg_match_all('/(4)?(2)?\d/', '123456', $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE | PREG_UNMA…
|
H A D | bug66121.phpt | 12 preg_match_all('/(?<!ක)/u', 'ම', $matches, PREG_OFFSET_CAPTURE); 17 var_dump(preg_match_all('/(?<!ක)/u', "\xFCම", $matches, PREG_OFFSET_CAPTURE)); 18 var_dump(preg_match_all('/(?<!ක)/u', "\xFCම", $matches, PREG_OFFSET_CAPTURE));
|
H A D | bug27011.phpt | 2 Bug #27011 (segfault in preg_match_all()) 6 var_dump(preg_match_all('|(\w+)://([^\s"<]*[\w+#?/&=])|', "This is a text string", $matches, PREG_S…
|
H A D | bug34790.phpt | 2 Bug #34790 (preg_match_all(), named capturing groups, variable assignment/return => crash) 7 preg_match_all('/(?P<word>the)/', $string, $matches);
|
H A D | bug52971.phpt | 9 preg_match_all($pattern, $message, $match, PREG_OFFSET_CAPTURE); 13 preg_match_all($pattern, $message, $match, PREG_OFFSET_CAPTURE);
|
H A D | bug61780_2.phpt | 11 preg_match_all('/(?<a>4)?(?<b>2)?\d/', '123456', $matches, PREG_UNMATCHED_AS_NULL); 14 preg_match_all('/(?<a>4)?(?<b>2)?\d/', '123456', $matches, PREG_OFFSET_CAPTURE | PREG_UNMATCHED_AS_… 17 preg_match_all('/(?<a>4)?(?<b>2)?\d/', '123456', $matches, PREG_SET_ORDER | PREG_UNMATCHED_AS_NULL); 20 preg_match_all('/(?<a>4)?(?<b>2)?\d/', '123456', $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE | P…
|
H A D | 002.phpt | 7 preg_match_all('//', '', $dummy, 0xdead); 20 preg_match_all(): Argument #4 ($flags) must be a PREG_* constant
|
H A D | 004.phpt | 6 var_dump(preg_match_all('/((?:(?:unsigned|struct)\s+)?\w+)(?:\s*(\*+)\s+|\s+(\**))(\w+(?:\[\s*\w*\s… 9 var_dump(preg_match_all('/(?:\([^)]+\))?(&?)([\w>.()-]+(?:\[\w+\])?)\s*,?((?:\)*\s*=)?)/S', '&a, b,… 12 var_dump(preg_match_all('/zend_parse_parameters(?:_ex\s*\([^,]+,[^,]+|\s*\([^,]+),\s*"([^"]*)"\s*,\…
|
H A D | 003.phpt | 2 abusing preg_match_all() 7 var_dump(preg_match_all('~
|
H A D | skip_003.inc | 3 if (@preg_match_all('/\p{N}/', '0123456789', $dummy) === false) {
|
H A D | request47456.phpt | 8 preg_match_all('/(?J)(?<chr>[ac])(?<num>\d)|(?<chr>[b])/', 'a1bc3', $m, PREG_SET_ORDER); 12 preg_match_all('/(?<chr>[ac])(?<num>\d)|(?<chr>[b])/J', 'a1bc3', $m, PREG_SET_ORDER);
|