1--TEST--
2Check for empty pattern
3--SKIPIF--
4<?php
5extension_loaded('mbstring') or die('skip mbstring not available');
6if (!function_exists('mb_ereg')) die('skip mbregex support not available');
7?>
8--FILE--
9<?php
10
11mb_ereg_search_init("","","");
12mb_split("","");
13mb_ereg_search_regs();
14
15?>
16--EXPECTF--
17Warning: mb_ereg_search_init(): Empty pattern in %s on line %d
18
19Warning: mb_ereg_search_regs(): No regex given in %s on line %d
20