Annotation of embedaddon/php/ext/mbstring/tests/mb_eregi.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: mb_eregi() and invalid arguments
! 3: --SKIPIF--
! 4: <?php
! 5: if (!extension_loaded('mbstring')) die('skip mbstring not enabled');
! 6: if (!function_exists("mb_eregi")) print "skip mb_eregi() not available";
! 7: ?>
! 8: --FILE--
! 9: <?php
! 10:
! 11: mb_regex_encoding('utf-8');
! 12:
! 13: var_dump(mb_eregi('z', 'XYZ'));
! 14: var_dump(mb_eregi('xyzp', 'XYZ'));
! 15: var_dump(mb_eregi('ö', 'Öäü'));
! 16: ?>
! 17: --EXPECT--
! 18: int(1)
! 19: bool(false)
! 20: int(1)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>