/PHP-7.2/ext/mbstring/tests/ |
H A D | mb_ereg_error.phpt | 2 Test mb_ereg() function : error conditions - pass incorrect number of arguments 6 function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build"); 16 * Test behaviour of mb_ereg() when passed an incorrcect number of arguments 19 echo "*** Testing mb_ereg() : error conditions ***\n"; 22 //Test mb_ereg with one more than the expected number of arguments 28 var_dump( mb_ereg($pattern, $string, $registers, $extra_arg) ); 30 // Testing mb_ereg with one less than the expected number of arguments 33 var_dump( mb_ereg($pattern) ); 38 *** Testing mb_ereg() : error conditions *** 40 -- Testing mb_ereg() function with more than expected no. of arguments -- [all …]
|
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_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 | bug72710.phpt | 2 Bug #72710 (`mb_ereg` causes buffer overflow on regexp compile error) 6 if (!function_exists('mb_ereg')) die('skip mb_ereg() 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 | 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 | 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_variation2.phpt | 2 Test mb_ereg() function : usage variations - pass different data types to $string arg 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 behaviour of mb_ereg() when passed different data types as $string arg 19 echo "*** Testing mb_ereg() : usage variations ***\n"; 92 // loop through each element of $inputs to check the behavior of mb_ereg() 99 var_dump( mb_ereg($pattern, $input, $regs) ); 110 *** Testing mb_ereg() : usage variations *** 233 Warning: mb_ereg() expects parameter 2 to be string, resource given in %s on line %d
|
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_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 | 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"); 10 /* Prototype : int mb_ereg(string $pattern, string $string [, array $registers]) 16 * test that mb_ereg can match correctly when passed different character classes. 19 echo "*** Testing mb_ereg() : variation ***\n"; 44 var_dump(mb_ereg($pattern, $string, $regs)); 73 *** 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 | 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 | bug69151.phpt | 2 Bug #69151 (mb_ereg should reject ill-formed byte sequence) 6 if (!function_exists('mb_ereg')) die('skip mb_ereg() not available');
|
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 | mb_ereg3.phpt | 2 mb_ereg() returning matches 6 if (!function_exists("mb_ereg")) print "skip mb_ereg() not available";
|
H A D | mb_ereg4.phpt | 2 mb_ereg() returning matches 6 if (!function_exists("mb_ereg")) print "skip mb_ereg() not available";
|
H A D | mb_ereg2.phpt | 2 mb_ereg() returning matches 4 <?php if (!function_exists("mb_ereg")) print "skip"; ?>
|
H A D | bug43301.phpt | 2 Bug #43301 (mb_ereg*_replace() crashes when replacement string is invalid PHP expression and 'e' op…
|
/PHP-7.2/ext/mbstring/ |
H A D | php_mbregex.h | 33 PHP_FE(mb_ereg, arginfo_mb_ereg) \ 48 PHP_FALIAS(mbereg, mb_ereg, arginfo_mb_ereg) \ 81 PHP_FUNCTION(mb_ereg);
|
H A D | php_mbregex.c | 788 PHP_FUNCTION(mb_ereg) in PHP_FUNCTION() argument
|