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