mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
22 lines
386 B
PHP
22 lines
386 B
PHP
--TEST--
|
|
Bug #72402: _php_mb_regex_ereg_replace_exec - double free
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--SKIPIF--
|
|
<?php
|
|
if (!function_exists('mb_ereg')) die('skip mbregex support not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
function throwit() {
|
|
throw new Exception('it');
|
|
}
|
|
$var10 = "throwit";
|
|
try {
|
|
$var14 = mb_ereg_replace_callback("", $var10, "");
|
|
} catch(Exception $e) {}
|
|
?>
|
|
DONE
|
|
--EXPECT--
|
|
DONE
|