1--TEST-- 2mb_ereg_search() with invalid pattern should discard old matches 3--EXTENSIONS-- 4mbstring 5--SKIPIF-- 6<?php if (!function_exists("mb_ereg")) print "skip requires mbregex"; ?> 7--FILE-- 8<?php 9 10mb_ereg_search_init(''); 11var_dump(mb_ereg_search('')); 12var_dump(mb_ereg_search("\xff")); 13var_dump(mb_ereg_search_getregs()); 14 15?> 16--EXPECTF-- 17bool(true) 18 19Warning: mb_ereg_search(): Pattern is not valid under UTF-8 encoding in %s on line %d 20bool(false) 21bool(false) 22