xref: /PHP-7.3/ext/mbstring/tests/bug72399.phpt (revision 0dbb581c)
1--TEST--
2Bug #72399 (Use-After-Free in MBString (search_re))
3--SKIPIF--
4<?php
5require 'skipif.inc';
6if (!function_exists('mb_ereg')) die('skip mbregex support not available');
7?>
8--FILE--
9<?php
10$var5 = mb_ereg_search_init("","2");
11$var6 = mb_eregi_replace("2","","");
12$var13 = mb_ereg_search_pos();
13?>
14--EXPECTF--
15Warning: mb_ereg_search_pos(): No regex given in %sbug72399.php on line %d
16