Home
last modified time | relevance | path

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

/PHP-5.4/ext/mbstring/tests/
H A Dmb_ereg_error.phpt2 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 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");
16 * mb_ereg 'successfully' matching incorrectly:
33 var_dump( mb_ereg($input, 'hello, world') );
46 Warning: mb_ereg(): empty pattern in %s on line %d
50 Warning: mb_ereg(): empty pattern in %s on line %d
57 Warning: mb_ereg(): empty pattern in %s on line %d
61 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 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");
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 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");
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 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_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");
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 Dmb_ereg1.phpt2 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]));
33 Warning: mb_ereg(): empty pattern in %s on line %d
56 Warning: mb_ereg() expects parameter 2 to be string, array given in %s on line %d
H A Dmb_ereg_variation2.phpt2 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) );
111 *** Testing mb_ereg() : usage variations ***
213 Warning: mb_ereg() expects parameter 2 to be string, resource given in %s on line %d
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_variation1.phpt2 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) );
94 *** Testing mb_ereg() : usage variations ***
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");
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));
74 *** Testing mb_ereg() : variation ***
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");
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 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");
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 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.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_ereg3.phpt2 mb_ereg() returning matches
6 if (!function_exists("mb_ereg")) print "skip mb_ereg() not available";
H A Dmb_ereg4.phpt2 mb_ereg() returning matches
6 if (!function_exists("mb_ereg")) print "skip mb_ereg() not available";
H A Dmb_ereg2.phpt2 mb_ereg() returning matches
4 <?php if (!function_exists("mb_ereg")) print "skip"; ?>
H A Dbug43301.phpt2 Bug #43301 (mb_ereg*_replace() crashes when replacement string is invalid PHP expression and 'e' op…
/PHP-5.4/ext/mbstring/
H A Dphp_mbregex.h33 PHP_FE(mb_ereg, arginfo_mb_ereg) \
48 PHP_FALIAS(mbereg, mb_ereg, arginfo_mb_ereg) \
81 PHP_FUNCTION(mb_ereg);
H A Dphp_mbregex.c772 PHP_FUNCTION(mb_ereg) in PHP_FUNCTION() argument
/PHP-5.4/
H A Dphp.ini-development1725 ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
H A Dphp.ini-production1725 ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
H A DNEWS5777 - Fixed bug #43994 (mb_ereg 'successfully' matching incorrect). (Rui)
5816 - Fixed bug #43301 (mb_ereg*_replace() crashes when replacement string is invalid PHP expression an…

Completed in 200 milliseconds