1--TEST--
2Check for empty pattern
3--EXTENSIONS--
4mbstring
5--SKIPIF--
6<?php
7if (!function_exists('mb_ereg')) die('skip mbregex support not available');
8?>
9--FILE--
10<?php
11
12try {
13    mb_ereg_search_init("","","");
14} catch (\ValueError $e) {
15    echo $e->getMessage() . \PHP_EOL;
16}
17
18mb_split("","");
19
20try {
21    mb_ereg_search_regs();
22} catch (\Error $e) {
23    echo $e->getMessage() . \PHP_EOL;
24}
25
26?>
27--EXPECT--
28mb_ereg_search_init(): Argument #2 ($pattern) must not be empty
29No pattern was provided
30