--TEST-- Test mb_ereg() function : mb_ereg 'successfully' matching incorrectly --SKIPIF-- --FILE-- getMessage() . \PHP_EOL; } echo "With \$regs arg:\n"; try { var_dump(mb_ereg($input, 'hello, world', $mb_regs)); } catch (\ValueError $e) { echo $e->getMessage() . \PHP_EOL; } var_dump($mb_regs); $iterator++; }; ?> --EXPECT-- -- Iteration 1 -- Without $regs arg: mb_ereg(): Argument #1 ($pattern) must not be empty With $regs arg: mb_ereg(): Argument #1 ($pattern) must not be empty NULL -- Iteration 2 -- Without $regs arg: mb_ereg(): Argument #1 ($pattern) must not be empty With $regs arg: mb_ereg(): Argument #1 ($pattern) must not be empty NULL -- Iteration 3 -- Without $regs arg: mb_ereg(): Argument #1 ($pattern) must not be empty With $regs arg: mb_ereg(): Argument #1 ($pattern) must not be empty NULL -- Iteration 4 -- Without $regs arg: mb_ereg(): Argument #1 ($pattern) must not be empty With $regs arg: mb_ereg(): Argument #1 ($pattern) must not be empty NULL -- Iteration 5 -- Without $regs arg: mb_ereg(): Argument #1 ($pattern) must not be empty With $regs arg: mb_ereg(): Argument #1 ($pattern) must not be empty NULL -- Iteration 6 -- Without $regs arg: mb_ereg(): Argument #1 ($pattern) must not be empty With $regs arg: mb_ereg(): Argument #1 ($pattern) must not be empty NULL -- Iteration 7 -- Without $regs arg: mb_ereg(): Argument #1 ($pattern) must not be empty With $regs arg: mb_ereg(): Argument #1 ($pattern) must not be empty NULL -- Iteration 8 -- Without $regs arg: mb_ereg(): Argument #1 ($pattern) must not be empty With $regs arg: mb_ereg(): Argument #1 ($pattern) must not be empty NULL