Home
last modified time | relevance | path

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

12

/PHP-8.0/ext/mbstring/tests/
H A Dbug43994.phpt2 Test mb_ereg() function : mb_ereg 'successfully' matching incorrectly
6 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
11 * mb_ereg 'successfully' matching incorrectly:
29 var_dump( mb_ereg($input, 'hello, world') );
48 mb_ereg(): Argument #1 ($pattern) must not be empty
50 mb_ereg(): Argument #1 ($pattern) must not be empty
55 mb_ereg(): Argument #1 ($pattern) must not be empty
57 mb_ereg(): Argument #1 ($pattern) must not be empty
62 mb_ereg(): Argument #1 ($pattern) must not be empty
64 mb_ereg(): Argument #1 ($pattern) must not be empty
[all …]
H A Dbug77381.phpt6 if (!function_exists('mb_ereg')) die('skip mb_ereg() not available');
10 var_dump(mb_ereg("000||0\xfa","0"));
11 var_dump(mb_ereg("(?i)000000000000000000000\xf0",""));
12 var_dump(mb_ereg("0000\\"."\xf5","0"));
13 var_dump(mb_ereg("(?i)FFF00000000000000000\xfd",""));
16 Warning: mb_ereg(): Pattern is not valid under UTF-8 encoding in %s on line %d
19 Warning: mb_ereg(): Pattern is not valid under UTF-8 encoding in %s on line %d
22 Warning: mb_ereg(): Pattern is not valid under UTF-8 encoding in %s on line %d
25 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
6 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
11 * Test basic functionality of mb_ereg
14 echo "*** Testing mb_ereg() : basic functionality ***\n";
31 var_dump(mb_ereg($regex_ascii1, $string_ascii));
32 var_dump(mb_ereg($regex_ascii2, $string_ascii));
41 var_dump(mb_ereg($regex_mb1, $string_mb));
42 var_dump(mb_ereg($regex_mb2, $string_mb));
44 var_dump(mb_ereg($regex_mb1, $string_mb, $regs_mb1));
46 var_dump(mb_ereg($regex_mb2, $string_mb, $regs_mb2));
[all …]
H A Dmb_ereg_named_subpatterns.phpt2 Testing mb_ereg() named subpatterns
6 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
11 mb_ereg('(?<wsp>\s*)(?<word>\w+)', ' 中国', $m);
13 mb_ereg('(?<wsp>\s*)(?<word>\w+)', '国', $m);
15 mb_ereg('(\s*)(?<word>\w+)', ' 中国', $m);
H A Dmb_ereg_variation5.phpt2 Test mb_ereg() function : usage variations - Test anchors in regex
6 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
11 * Test mb_ereg with anchors (start and end of string) in $pattern
14 echo "*** Testing mb_ereg() : usage variations ***\n";
24 var_dump(mb_ereg($regex, $string_ascii));
26 var_dump(mb_ereg($regex, $string_ascii, $regs_ascii));
30 var_dump(mb_ereg($regex, $string_mb));
32 var_dump(mb_ereg($regex, $string_mb, $regs_mb));
60 *** Testing mb_ereg() : usage variations ***
H A Dmb_ereg-compat-01.phpt2 mb_ereg() compat test 1
6 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
12 if (mb_ereg(".*nice and simple.*",$a)) {
15 if (!mb_ereg(".*doesn't exist.*",$a)) {
H A Dmb_ereg_dupnames.phpt2 Testing mb_ereg() duplicate named groups
6 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
12 mb_ereg($pattern, '中?', $m);
14 mb_ereg($pattern, '中!', $m);
H A Dmbregex_stack_limit.phpt6 if (!function_exists('mb_ereg')) die('skip mb_ereg not available');
16 var_dump(mb_ereg('\\s+$', $s));
19 var_dump(mb_ereg('\\s+$', $s));
22 var_dump(mb_ereg('\\s+$', $s));
H A Dmb_ereg1.phpt2 mb_ereg() and invalid arguments
4 <?php if (!function_exists("mb_ereg")) print "skip"; ?>
18 var_dump(mb_ereg($args[0], $args[1], $args[2]));
36 ValueError: mb_ereg(): Argument #1 ($pattern) must not be empty
45 TypeError: mb_ereg(): Argument #1 ($pattern) must be of type string, array given
55 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)
6 if (!function_exists('mb_ereg')) die('skip mbregex support not available');
10 mb_ereg('(?<0>a)', 'a');
13 Warning: mb_ereg(): mbregex compile err: invalid group name <0> in %s on line %d
H A Dbug77371.phpt6 if (!function_exists('mb_ereg')) die('skip mb_ereg() not available');
10 var_dump(mb_ereg("()0\xfc00000\xfc00000\xfc00000\xfc",""));
13 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
6 if (!function_exists("mb_ereg")) print "skip mb_ereg() not available";
12 mb_ereg($a, $b, $c);
H A Dretry_limit.phpt6 if (!function_exists('mb_ereg')) die('skip mb_ereg not available');
16 var_dump(mb_ereg($regex, $str));
18 var_dump(mb_ereg($regex, $str));
H A Dmb_ereg-compat-02.phpt2 mb_ereg() compat test 2
6 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
12 echo mb_ereg(".*(is).*(is).*",$a,$registers);
H A Dmb_ereg_variation7.phpt2 Test mb_ereg() function : usage variations - different regex features in $pattern
6 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
17 echo "*** Testing mb_ereg() : usage variations ***\n";
27 var_dump(mb_ereg($regex_ascii, $string_ascii, $regs_ascii));
32 var_dump(mb_ereg($regex_mb, $string_mb, $regs_mb));
61 *** Testing mb_ereg() : usage variations ***
H A Dphp_gr_jp_10830.phpt6 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
12 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…
6 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
12 * test that mb_ereg can match correctly when passed different character classes.
15 echo "*** Testing mb_ereg() : variation ***\n";
40 var_dump(mb_ereg($pattern, $string, $regs));
69 *** Testing mb_ereg() : variation ***
H A Dmb_ereg.phpt2 mb_ereg()
6 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
20 …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
6 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
11 * Test how mb_ereg() matches special characters for $pattern
14 echo "*** Testing mb_ereg() : usage variations ***\n";
41 var_dump(mb_ereg($char, $string_ascii, $regs_ascii));
45 var_dump(mb_ereg($char, $string_mb, $regs_mb));
76 *** 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…
6 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
14 echo "*** Testing mb_ereg() : usage variations ***\n";
41 var_dump(mb_ereg($pattern, $string_mb, $regs));
72 *** Testing mb_ereg() : usage variations ***
H A Dbug78559.phpt6 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)
6 if (!function_exists('mb_ereg')) die('skip mbregex support not available');
H A Dbug73646.phpt6 if (!function_exists('mb_ereg')) die('skip mbregex support not available');
H A Dbug73532.phpt6 if (!function_exists('mb_ereg')) die('skip mbregex support not available');
H A Dbug72402.phpt6 if (!function_exists('mb_ereg')) die('skip mbregex support not available');

Completed in 19 milliseconds

12