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