Home
last modified time | relevance | path

Searched refs:mb_ereg (Results 1 – 25 of 37) sorted by relevance

12

/PHP-8.2/ext/mbstring/tests/
H A Dbug43994.phpt2 Test mb_ereg() function : mb_ereg 'successfully' matching incorrectly
7 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
12 * mb_ereg 'successfully' matching incorrectly:
27 var_dump( mb_ereg($input, 'hello, world') );
46 mb_ereg(): Argument #1 ($pattern) must not be empty
48 mb_ereg(): Argument #1 ($pattern) must not be empty
53 mb_ereg(): Argument #1 ($pattern) must not be empty
55 mb_ereg(): Argument #1 ($pattern) must not be empty
60 mb_ereg(): Argument #1 ($pattern) must not be empty
62 mb_ereg(): Argument #1 ($pattern) must not be empty
[all …]
H A Dbug77381.phpt7 if (!function_exists('mb_ereg')) die('skip mb_ereg() not available');
11 var_dump(mb_ereg("000||0\xfa","0"));
12 var_dump(mb_ereg("(?i)000000000000000000000\xf0",""));
13 var_dump(mb_ereg("0000\\"."\xf5","0"));
14 var_dump(mb_ereg("(?i)FFF00000000000000000\xfd",""));
17 Warning: mb_ereg(): Pattern is not valid under UTF-8 encoding in %s on line %d
20 Warning: mb_ereg(): Pattern is not valid under UTF-8 encoding in %s on line %d
23 Warning: mb_ereg(): Pattern is not valid under UTF-8 encoding in %s on line %d
26 Warning: mb_ereg(): Pattern is not valid under UTF-8 encoding in %s on line %d
H A Dmb_ereg_basic.phpt2 Test mb_ereg() function : basic functionality
7 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
12 * Test basic functionality of mb_ereg
15 echo "*** Testing mb_ereg() : basic functionality ***\n";
32 var_dump(mb_ereg($regex_ascii1, $string_ascii));
33 var_dump(mb_ereg($regex_ascii2, $string_ascii));
42 var_dump(mb_ereg($regex_mb1, $string_mb));
43 var_dump(mb_ereg($regex_mb2, $string_mb));
45 var_dump(mb_ereg($regex_mb1, $string_mb, $regs_mb1));
47 var_dump(mb_ereg($regex_mb2, $string_mb, $regs_mb2));
[all …]
H A Dmb_ereg_named_subpatterns.phpt2 Testing mb_ereg() named subpatterns
7 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
12 mb_ereg('(?<wsp>\s*)(?<word>\w+)', ' 中国', $m);
14 mb_ereg('(?<wsp>\s*)(?<word>\w+)', '国', $m);
16 mb_ereg('(\s*)(?<word>\w+)', ' 中国', $m);
H A Dmb_ereg_variation5.phpt2 Test mb_ereg() function : usage variations - Test anchors in regex
7 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
12 * Test mb_ereg with anchors (start and end of string) in $pattern
15 echo "*** Testing mb_ereg() : usage variations ***\n";
25 var_dump(mb_ereg($regex, $string_ascii));
27 var_dump(mb_ereg($regex, $string_ascii, $regs_ascii));
31 var_dump(mb_ereg($regex, $string_mb));
33 var_dump(mb_ereg($regex, $string_mb, $regs_mb));
61 *** Testing mb_ereg() : usage variations ***
H A Dmb_ereg_dupnames.phpt2 Testing mb_ereg() duplicate named groups
7 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
13 mb_ereg($pattern, '中?', $m);
15 mb_ereg($pattern, '中!', $m);
H A Dmb_ereg-compat-01.phpt2 mb_ereg() compat test 1
7 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
13 if (mb_ereg(".*nice and simple.*",$a)) {
16 if (!mb_ereg(".*doesn't exist.*",$a)) {
H A Dmbregex_stack_limit.phpt7 if (!function_exists('mb_ereg')) die('skip mb_ereg not available');
17 var_dump(mb_ereg('\\s+$', $s));
20 var_dump(mb_ereg('\\s+$', $s));
23 var_dump(mb_ereg('\\s+$', $s));
H A Dmb_ereg1.phpt2 mb_ereg() and invalid arguments
6 <?php if (!function_exists("mb_ereg")) print "skip"; ?>
20 var_dump(mb_ereg($args[0], $args[1], $args[2]));
38 ValueError: mb_ereg(): Argument #1 ($pattern) must not be empty
47 TypeError: mb_ereg(): Argument #1 ($pattern) must be of type string, array given
57 TypeError: mb_ereg(): Argument #2 ($string) must be of type string, array given
H A Dbug72710.phpt2 Bug #72710 (`mb_ereg` causes buffer overflow on regexp compile error)
7 if (!function_exists('mb_ereg')) die('skip mbregex support not available');
11 mb_ereg('(?<0>a)', 'a');
14 Warning: mb_ereg(): mbregex compile err: invalid group name <0> in %s on line %d
H A Dbug77371.phpt7 if (!function_exists('mb_ereg')) die('skip mb_ereg() not available');
11 var_dump(mb_ereg("()0\xfc00000\xfc00000\xfc00000\xfc",""));
14 Warning: mb_ereg(): Pattern is not valid under UTF-8 encoding in %s on line %d
H A Dmb_ereg2.phpt2 mb_ereg() returning matches
7 if (!function_exists("mb_ereg")) print "skip mb_ereg() not available";
13 mb_ereg($a, $b, $c);
H A Dretry_limit.phpt7 if (!function_exists('mb_ereg')) die('skip mb_ereg not available');
17 var_dump(mb_ereg($regex, $str));
19 var_dump(mb_ereg($regex, $str));
H A Dmb_ereg-compat-02.phpt2 mb_ereg() compat test 2
7 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
13 echo mb_ereg(".*(is).*(is).*",$a,$registers);
H A Dmb_ereg_variation7.phpt2 Test mb_ereg() function : usage variations - different regex features in $pattern
7 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
18 echo "*** Testing mb_ereg() : usage variations ***\n";
28 var_dump(mb_ereg($regex_ascii, $string_ascii, $regs_ascii));
33 var_dump(mb_ereg($regex_mb, $string_mb, $regs_mb));
62 *** Testing mb_ereg() : usage variations ***
H A Dphp_gr_jp_10830.phpt7 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
13 var_dump( mb_ereg("^[^><]+$",$a) );
H A Dmb_ereg_variation3.phpt2 Test mb_ereg() function : usage variations - pass different character classes to see they match cor…
7 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
13 * test that mb_ereg can match correctly when passed different character classes.
16 echo "*** Testing mb_ereg() : variation ***\n";
41 var_dump(mb_ereg($pattern, $string, $regs));
70 *** Testing mb_ereg() : variation ***
H A Dmb_ereg.phpt2 mb_ereg()
7 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
21 …printf( "(%d)%s\n", mb_ereg( $pat, $str, $reg ), ( is_array( $reg )? bin2hex(mb_convert_encoding( …
H A Dmb_ereg_variation6.phpt2 Test mb_ereg() function : usage variations - match special characters
7 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
12 * Test how mb_ereg() matches special characters for $pattern
15 echo "*** Testing mb_ereg() : usage variations ***\n";
42 var_dump(mb_ereg($char, $string_ascii, $regs_ascii));
46 var_dump(mb_ereg($char, $string_mb, $regs_mb));
77 *** Testing mb_ereg() : usage variations ***
H A Dmb_ereg_variation4.phpt2 Test mb_ereg() function : usage variations - pass different character classes as pattern for multib…
7 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
15 echo "*** Testing mb_ereg() : usage variations ***\n";
42 var_dump(mb_ereg($pattern, $string_mb, $regs));
73 *** Testing mb_ereg() : usage variations ***
H A Dbug78559.phpt7 if (!function_exists('mb_ereg')) die('skip mb_ereg() not available');
H A Dbug69151.phpt2 Bug #69151 (mb_ereg should reject ill-formed byte sequence)
7 if (!function_exists('mb_ereg')) die('skip mbregex support not available');
H A Dbug73532.phpt7 if (!function_exists('mb_ereg')) die('skip mbregex support not available');
H A Dbug72402.phpt7 if (!function_exists('mb_ereg')) die('skip mbregex support not available');
H A Dbug73646.phpt7 if (!function_exists('mb_ereg')) die('skip mbregex support not available');

Completed in 17 milliseconds

12