xref: /PHP-8.2/ext/mbstring/tests/bug78633.phpt (revision 74859783)
1--TEST--
2Bug #78633 (Heap buffer overflow (read) in mb_eregi)
3--EXTENSIONS--
4mbstring
5--SKIPIF--
6<?php
7if (!function_exists('mb_eregi')) die('skip mb_eregi function not available');
8?>
9--FILE--
10<?php
11$res = mb_eregi(".+Isssǰ", ".+Isssǰ");
12if (is_bool($res)) {
13    echo "ok\n";
14} else {
15    var_dump($res);
16}
17?>
18--EXPECT--
19ok
20