php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /php-7.1.11/ext/mbstring/tests/ |
files >> //php-7.1.11/ext/mbstring/tests/mb_ereg_match_error1.phpt |
--TEST-- Test mb_ereg_match() function : error conditions - pass function incorrect number of arguments --SKIPIF-- <?php extension_loaded('mbstring') or die('skip'); function_exists('mb_ereg_match') or die("skip mb_ereg_match() is not available in this build"); ?> --FILE-- <?php /* Prototype : bool mb_ereg_match(string $pattern, string $string [,string $option]) * Description: Regular expression match for multibyte string * Source code: ext/mbstring/php_mbregex.c */ /* * Test mb_ereg_match by passing an incorrect number of arguments */ echo "*** Testing mb_ereg_match() : error conditions ***\n"; //Test mb_ereg_match with one more than the expected number of arguments echo "\n-- Testing mb_ereg_match() function with more than expected no. of arguments --\n"; $pattern = b'string_val'; $string = b'string_val'; $option = 'string_val'; $extra_arg = 10; var_dump( mb_ereg_match($pattern, $string, $option, $extra_arg) ); // Testing mb_ereg_match with one less than the expected number of arguments echo "\n-- Testing mb_ereg_match() function with less than expected no. of arguments --\n"; $pattern = b'string_val'; var_dump( mb_ereg_match($pattern) ); // Testing mb_ereg_match with zero arguments echo "\n-- Testing mb_ereg_match() function with zero arguments --\n"; var_dump( mb_ereg_match() ); echo "Done"; ?> --EXPECTF-- *** Testing mb_ereg_match() : error conditions *** -- Testing mb_ereg_match() function with more than expected no. of arguments -- Warning: mb_ereg_match() expects at most 3 parameters, 4 given in %s on line %d bool(false) -- Testing mb_ereg_match() function with less than expected no. of arguments -- Warning: mb_ereg_match() expects at least 2 parameters, 1 given in %s on line %d bool(false) -- Testing mb_ereg_match() function with zero arguments -- Warning: mb_ereg_match() expects at least 2 parameters, 0 given in %s on line %d bool(false) Doney~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`