xref: /PHP-5.5/ext/mbstring/tests/bug72402.phpt (revision 5b597a2e)
1--TEST--
2Bug #72402: _php_mb_regex_ereg_replace_exec - double free
3--SKIPIF--
4<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
5--FILE--
6<?php
7function throwit() {
8	throw new Exception('it');
9}
10$var10 = "throwit";
11try {
12	$var14 = mb_ereg_replace_callback("", $var10, "");
13} catch(Exception $e) {}
14?>
15DONE
16--EXPECT--
17DONE