/php-src/ext/pcre/tests/ |
H A D | null_bytes.phpt | 6 var_dump(preg_match("\0//i", "")); 7 var_dump(preg_match("/\0/i", "")); 8 var_dump(preg_match("/\0/i", "\0")); 9 var_dump(preg_match("//\0i", "")); 10 var_dump(preg_match("//i\0", "")); 11 var_dump(preg_match("/\\\0/i", "")); 14 var_dump(preg_match("\0[]i", "")); 15 var_dump(preg_match("[\0]i", "")); 16 var_dump(preg_match("[\0]i", "\0")); 17 var_dump(preg_match("[]\0i", "")); [all …]
|
H A D | delimiters.phpt | 6 var_dump(preg_match('', '')); 7 var_dump(preg_match(' ', '')); 8 var_dump(preg_match('@@', '')); 9 var_dump(preg_match('12', '')); 10 var_dump(preg_match('<>', '')); 11 var_dump(preg_match('~a', '')); 12 var_dump(preg_match('@\@\@@', '@@')); 13 var_dump(preg_match('//z', '@@')); 14 var_dump(preg_match('{', '')); 15 var_dump(preg_match("\0\0", '')); [all …]
|
H A D | preg_match_caseless_restrict.phpt | 12 var_dump(preg_match('/AskZ/iur', 'AskZ')); // match 13 var_dump(preg_match('/AskZ/iur', 'aSKz')); // match 16 var_dump(preg_match('/AskZ/iu', 'AskZ')); // match 17 var_dump(preg_match('/AskZ/iu', 'aSKz')); // match 18 var_dump(preg_match('/AskZ/iu', "A\u{17f}kZ")); // match 22 var_dump(preg_match('/k/iu', "\u{212A}")); 23 var_dump(preg_match('/k/iur', "\u{212A}")); 30 var_dump(preg_match('/[AskZ]+/iur', 'AskZ')); // match 31 var_dump(preg_match('/[AskZ]+/iur', 'aSKz')); // match 34 var_dump(preg_match('/[AskZ]+/iu', 'AskZ')); // match [all …]
|
H A D | match_flags3.phpt | 2 preg_match() flags 3 6 var_dump(preg_match('', '', $match, 0xfff)); 8 var_dump(preg_match('/\d+/', '123 456 789 012', $match, 0, -8)); 11 var_dump(preg_match('/\d+/', '123 456 789 012', $match, 0, -500)); 17 var_dump(preg_match('/(?P<3>)/', '')); 21 Warning: preg_match(): Empty regular expression in %smatch_flags3.php on line 3 44 Warning: preg_match(): Compilation failed: %s name must start with a non-digit at offset %d in %sma…
|
H A D | preg_match_error1.phpt | 2 Test preg_match() function : error conditions - bad regular expressions 7 * Testing how preg_match reacts to being passed the wrong type of regex argument 24 var_dump(preg_match($regex_value, $subject)); 31 var_dump(preg_match($regex_value, $subject)); 39 Warning: preg_match(): Delimiter must not be alphanumeric, backslash, or NUL byte in %spreg_match_e… 42 Warning: preg_match(): No ending delimiter '/' found in %spreg_match_error1.php on line %d 45 Warning: preg_match(): Unknown modifier '/' in %spreg_match_error1.php on line %d 48 Warning: preg_match(): Unknown modifier 'F' in %spreg_match_error1.php on line %d 50 preg_match(): Argument #1 ($pattern) must be of type string, array given 52 preg_match(): Argument #1 ($pattern) must be of type string, stdClass given
|
H A D | bug79241.phpt | 2 Bug #79241: Segmentation fault on preg_match() 12 // it has to be exact two calls to preg_match(), 14 var_dump(preg_match($pattern, $text, $matches, 0, 0)); 15 var_dump(preg_match($pattern, $text, $matches, 0, 1)); 21 var_dump(preg_match($pattern, $text, $matches, 0, 4)); 22 var_dump(preg_match($pattern, $text, $matches, 0, 0));
|
H A D | study.phpt | 6 var_dump(preg_match('/(?:(?:(?:(?:(?:(.))))))/ S', 'aeiou', $dump)); 8 var_dump(preg_match('/(?:(?:(?:(?:(?:(.))))))/', 'aeiou', $dump)); 11 var_dump(preg_match('/(?>..)((?:(?>.)|.|.|.|u))/S', 'aeiou', $dump)); 15 var_dump(preg_match('/^aeiou$/S', 'aeiou', $dump)); 17 var_dump(preg_match('/aeiou/S', 'aeiou', $dump));
|
H A D | preg_match_latin.phpt | 2 preg_match() single line match with latin input 5 preg_match('/^[\w\p{Cyrillic}\s\-\']+$/u', 'latin', $test1); 6 preg_match('/^[\w\p{Cyrillic}\s\-\']+$/u', 'кириллица', $test2); 7 preg_match('/^[\w\s\-\']+$/u', 'latin', $test3);
|
H A D | preg_match_basic_edit.phpt | 2 Test preg_match() function : basic functionality 7 var_dump(preg_match('/^[hH]ello,\s/', $string, $match1)); //finds "Hello, " 10 var_dump(preg_match('/l^o,\s\w{5}/', $string, $match2, PREG_OFFSET_CAPTURE)); // tries to find "… 13 var_dump(preg_match('/\[\*\],\s(.*)/', $string, $match3)); //finds "[*], this is \ a string"; 16 var_dump(preg_match('@\w{4}\s\w{2}\s\\\(?:\s.*)@', $string, $match4, PREG_OFFSET_CAPTURE, 14)); //f… 19 var_dump(preg_match('/hello world/', $string, $match5)); //tries to find "hello world" (shoul…
|
H A D | preg_match_basic.phpt | 2 Test preg_match() function : basic functionality 7 var_dump(preg_match('/^[hH]ello,\s/', $string, $match1)); //finds "Hello, " 9 var_dump(preg_match('/l^o,\s\w{5}/', $string, $match2, PREG_OFFSET_CAPTURE)); // tries to find "lo,… 11 var_dump(preg_match('/\[\*\],\s(.*)/', $string, $match3)); //finds "[*], this is \ a string"; 13 var_dump(preg_match('@\w{4}\s\w{2}\s\\\(?:\s.*)@', $string, $match4, PREG_OFFSET_CAPTURE, 14)); //f… 15 var_dump(preg_match('/hello world/', $string, $match5)); //tries to find "hello world" (should be H…
|
H A D | pcre_anchored.phpt | 12 var_dump(preg_match('/\PN+/', '123abc', $m)); 15 var_dump(preg_match('/\P{N}+/A', '123abc')); 16 var_dump(preg_match('/^\P{N}+/', '123abc')); 17 var_dump(preg_match('/^\P{N}+/A', '123abc'));
|
H A D | pcre_extra.phpt | 6 var_dump(preg_match('/\y/', '\y')); 7 var_dump(preg_match('/\y/X', '\y')); 11 Warning: preg_match(): Compilation failed: unrecognized character follows \ at offset 1 in %spcre_e… 14 Warning: preg_match(): Compilation failed: unrecognized character follows \ at offset 1 in %spcre_e…
|
H A D | bug47229.phpt | 9 preg_match('/[a\-c]+/', 'a---b', $m); 12 preg_match('/[a\-c]+/', 'a\-', $m); 15 preg_match("/a\-{2,}/", 'a----a', $m); 18 preg_match("/a\-{1,}/", 'a\----a', $m);
|
H A D | oss-fuzz-65021.phpt | 5 var_dump(preg_match(">","")); 6 var_dump(preg_match(">foo>i","FOO")); 9 Warning: preg_match(): No ending delimiter '>' found in %s on line %d
|
H A D | bug40195.phpt | 6 var_dump(preg_match('@^(/([a-z]*))*$@', '//abcde', $m)); var_dump($m); 7 var_dump(preg_match('@^(/(?:[a-z]*))*$@', '//abcde', $m)); var_dump($m); 9 var_dump(preg_match('@^(/([a-z]+))+$@', '/a/abcde', $m)); var_dump($m); 10 var_dump(preg_match('@^(/(?:[a-z]+))+$@', '/a/abcde', $m)); var_dump($m);
|
H A D | bug79257.phpt | 6 preg_match('/(?J)(?:(?<g>foo)|(?<g>bar))/', 'foo', $matches); 8 preg_match('/(?J)(?:(?<g>foo)|(?<g>bar))/', 'foo', $matches, 11 preg_match('/(?J)(?:(?<g>foo)|(?<g>bar))/', 'foo', $matches, 14 preg_match('/(?J)(?:(?<g>foo)|(?<g>bar))/', 'foo', $matches, 18 preg_match('/(?J)(?:(?<g>foo)|(?<g>bar))(?<h>baz)/', 'foobaz', $matches); 20 preg_match('/(?J)(?:(?<g>foo)|(?<g>bar))(?<h>baz)/', 'foobaz', $matches, 23 preg_match('/(?J)(?:(?<g>foo)|(?<g>bar))(?<h>baz)/', 'foobaz', $matches, 26 preg_match('/(?J)(?:(?<g>foo)|(?<g>bar))(?<h>baz)/', 'foobaz', $matches,
|
H A D | errors03.phpt | 2 Test preg_match() function : error conditions - Internal error 6 var_dump(preg_match('/', 'Hello world')); 11 Warning: preg_match(): No ending delimiter '/' found in %s on line %d
|
H A D | preg_match_non_capture.phpt | 2 testing /n modifier in preg_match() 6 preg_match('/.(.)./n', 'abc', $m); 9 preg_match('/.(?P<test>.)./n', 'abc', $m);
|
H A D | match_flags2.phpt | 2 preg_match() flags 6 var_dump(preg_match('/x(.)/', 'fjszxax', $match, PREG_OFFSET_CAPTURE)); 9 var_dump(preg_match('/(.)x/', 'fjszxax', $match, PREG_OFFSET_CAPTURE, 4)); 12 var_dump(preg_match('/(?P<capt1>.)(x)(?P<letsmix>\S+)/', 'fjszxax', $match, PREG_OFFSET_CAPTURE));
|
H A D | ungreedy.phpt | 6 var_dump(preg_match('/<.*>/', '<aa> <bb> <cc>', $m)); 9 var_dump(preg_match('/<.*>/U', '<aa> <bb> <cc>', $m)); 12 var_dump(preg_match('/(?U)<.*>/', '<aa> <bb> <cc>', $m));
|
H A D | pcre_extended.phpt | 6 var_dump(preg_match('/a e i o u/', 'aeiou', $m)); 9 var_dump(preg_match('/a e i o u/x', 'aeiou', $m)); 12 var_dump(preg_match("/a e\ni\to\ru/x", 'aeiou', $m));
|
H A D | bug76909.phpt | 2 Bug #76909 preg_match difference between 7.3 and < 7.3 16 $n0 = preg_match($reg0, $data, $m0); 17 $n1 = preg_match($reg1, $data, $m1);
|
H A D | bug78272.phpt | 2 Bug #78272: calling preg_match() before pcntl_fork() will freeze child process 7 preg_match('/abc/', 'abcde', $r); 12 preg_match('/abc/', 'abcde', $r);
|
/php-src/ext/ctype/tests/ |
H A D | lc_ctype_inheritance.phpt | 17 echo 'preg_match(\w, \xe4): '; 18 var_dump(preg_match('/\w/', "\xe4")); 22 echo 'preg_match(\w, \xe4): '; 23 var_dump(preg_match('/\w/', "\xe4")); 28 echo 'preg_match(\w, \xe4): '; 29 var_dump(preg_match('/\w/', "\xe4")); 34 preg_match(\w, \xe4): int(0) 37 preg_match(\w, \xe4): int(0) 41 preg_match(\w, \xe4): int(1)
|
/php-src/sapi/fuzzer/ |
H A D | generate_corpus_util.php | 12 if (!preg_match('/\.phpt$/', $file)) continue; 14 if (!preg_match('/--FILE--\R(.*?)\R--([_A-Z]+)--/s', $fullCode, $matches)) continue; 20 if (!preg_match('/SKIP_SLOW_TESTS|SKIP_PERF_SENSITIVE|USE_ZEND_ALLOC/', $fullCode)) {
|