Lines Matching refs:mb_ereg
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");
10 /* Prototype : int mb_ereg(string $pattern, string $string [, array $registers])
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
23 echo "\n-- Testing mb_ereg() function with more than expected no. of arguments --\n";
28 var_dump( mb_ereg($pattern, $string, $registers, $extra_arg) );
30 // Testing mb_ereg with one less than the expected number of arguments
31 echo "\n-- Testing mb_ereg() function with less than expected no. of arguments --\n";
33 var_dump( mb_ereg($pattern) );
38 *** Testing mb_ereg() : error conditions ***
40 -- Testing mb_ereg() function with more than expected no. of arguments --
42 Warning: mb_ereg() expects at most 3 parameters, 4 given in %s on line %d
45 -- Testing mb_ereg() function with less than expected no. of arguments --
47 Warning: mb_ereg() expects at least 2 parameters, 1 given in %s on line %d