/PHP-7.4/ext/mbstring/tests/ |
H A D | bug43994.phpt | 2 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"); 16 * mb_ereg 'successfully' matching incorrectly: 33 var_dump( mb_ereg($input, 'hello, world') ); 44 Warning: mb_ereg(): empty pattern in %s on line %d 48 Warning: mb_ereg(): empty pattern in %s on line %d 56 Warning: mb_ereg(): empty pattern in %s on line %d 60 Warning: mb_ereg(): empty pattern in %s on line %d 68 Warning: mb_ereg(): empty pattern in %s on line %d 72 Warning: mb_ereg(): empty pattern in %s on line %d [all …]
|
H A D | bug77381.phpt | 6 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 D | mb_ereg_basic.phpt | 2 Test mb_ereg() function : basic functionality 6 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build"); 16 * Test basic functionality of mb_ereg 19 echo "*** Testing mb_ereg() : basic functionality ***\n"; 36 var_dump(mb_ereg($regex_ascii1, $string_ascii)); 37 var_dump(mb_ereg($regex_ascii2, $string_ascii)); 46 var_dump(mb_ereg($regex_mb1, $string_mb)); 47 var_dump(mb_ereg($regex_mb2, $string_mb)); 49 var_dump(mb_ereg($regex_mb1, $string_mb, $regs_mb1)); 51 var_dump(mb_ereg($regex_mb2, $string_mb, $regs_mb2)); [all …]
|
H A D | mb_ereg_named_subpatterns.phpt | 2 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 D | mb_ereg_variation5.phpt | 2 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"); 10 /* Prototype : int mb_ereg(string $pattern, string $string [, array $registers]) 16 * Test mb_ereg with anchors (start and end of string) in $pattern 19 echo "*** Testing mb_ereg() : usage variations ***\n"; 29 var_dump(mb_ereg($regex, $string_ascii)); 31 var_dump(mb_ereg($regex, $string_ascii, $regs_ascii)); 35 var_dump(mb_ereg($regex, $string_mb)); 37 var_dump(mb_ereg($regex, $string_mb, $regs_mb)); 65 *** Testing mb_ereg() : usage variations ***
|
H A D | mb_ereg-compat-01.phpt | 2 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 D | mb_ereg_dupnames.phpt | 2 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 D | mbregex_stack_limit.phpt | 6 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 D | bug72710.phpt | 2 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 D | retry_limit.phpt | 6 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 D | bug77371.phpt | 6 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 D | mb_ereg1.phpt | 2 mb_ereg() and invalid arguments 4 <?php if (!function_exists("mb_ereg")) print "skip"; ?> 17 var_dump(mb_ereg($args[0], $args[1], $args[2])); 34 Warning: mb_ereg(): empty pattern in %s on line %d 59 Warning: mb_ereg() expects parameter 2 to be string, array given in %s on line %d
|
H A D | mb_ereg_variation7.phpt | 2 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"); 10 /* Prototype : int mb_ereg(string $pattern, string $string [, array $registers]) 22 echo "*** Testing mb_ereg() : usage variations ***\n"; 32 var_dump(mb_ereg($regex_ascii, $string_ascii, $regs_ascii)); 37 var_dump(mb_ereg($regex_mb, $string_mb, $regs_mb)); 66 *** Testing mb_ereg() : usage variations ***
|
H A D | mb_ereg-compat-02.phpt | 2 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 D | mb_ereg2.phpt | 2 mb_ereg() returning matches 6 if (!function_exists("mb_ereg")) print "skip mb_ereg() not available"; 12 mb_ereg($a, $b, $c);
|
H A D | mb_ereg_variation1.phpt | 2 Test mb_ereg() function : usage variations - pass different data types to $pattern argument 6 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build"); 10 /* Prototype : int mb_ereg(string $pattern, string $string [, array $registers]) 19 echo "*** Testing mb_ereg() : usage variations ***\n"; 76 // loop through each element of $inputs to check the behavior of mb_ereg() 83 var_dump( mb_ereg($input, $string, $regs) ); 93 *** Testing mb_ereg() : usage variations ***
|
H A D | php_gr_jp_10830.phpt | 6 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build"); 12 var_dump( mb_ereg("^[^><]+$",$a) );
|
H A D | mb_ereg_variation3.phpt | 2 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"); 11 /* Prototype : int mb_ereg(string $pattern, string $string [, array $registers]) 17 * test that mb_ereg can match correctly when passed different character classes. 20 echo "*** Testing mb_ereg() : variation ***\n"; 45 var_dump(mb_ereg($pattern, $string, $regs)); 74 *** Testing mb_ereg() : variation ***
|
H A D | mb_ereg_variation6.phpt | 2 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"); 10 /* Prototype : int mb_ereg(string $pattern, string $string [, array $registers]) 16 * Test how mb_ereg() matches special characters for $pattern 19 echo "*** Testing mb_ereg() : usage variations ***\n"; 46 var_dump(mb_ereg($char, $string_ascii, $regs_ascii)); 50 var_dump(mb_ereg($char, $string_mb, $regs_mb)); 81 *** Testing mb_ereg() : usage variations ***
|
H A D | mb_ereg_variation4.phpt | 2 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"); 10 /* Prototype : int mb_ereg(string $pattern, string $string [, array $registers]) 19 echo "*** Testing mb_ereg() : usage variations ***\n"; 46 var_dump(mb_ereg($pattern, $string_mb, $regs)); 77 *** Testing mb_ereg() : usage variations ***
|
H A D | mb_ereg.phpt | 2 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 D | bug78559.phpt | 6 if (!function_exists('mb_ereg')) die('skip mb_ereg() not available');
|
H A D | bug69151.phpt | 2 Bug #69151 (mb_ereg should reject ill-formed byte sequence) 6 if (!function_exists('mb_ereg')) die('skip mbregex support not available');
|
H A D | mb_ereg3.phpt | 2 mb_ereg() returning matches 6 if (!function_exists("mb_ereg")) print "skip mb_ereg() not available";
|
/PHP-7.4/ext/mbstring/ |
H A D | php_mbregex.h | 31 PHP_FE(mb_ereg, arginfo_mb_ereg) \ 46 PHP_DEP_FALIAS(mbereg, mb_ereg, arginfo_mb_ereg) \ 79 PHP_FUNCTION(mb_ereg);
|