1--TEST-- 2mb_eregi() and invalid arguments 3--SKIPIF-- 4<?php 5if (!extension_loaded('mbstring')) die('skip mbstring not enabled'); 6if (!function_exists("mb_eregi")) print "skip mb_eregi() not available"; 7?> 8--FILE-- 9<?php 10 11mb_regex_encoding('utf-8'); 12 13var_dump(mb_eregi('z', 'XYZ')); 14var_dump(mb_eregi('xyzp', 'XYZ')); 15var_dump(mb_eregi('ö', 'Öäü')); 16?> 17--EXPECT-- 18bool(true) 19bool(false) 20bool(true) 21