mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
ext/mbstring: mb_ereg*_replace remove unreachable code. (#18646)
This commit is contained in:
@@ -1106,12 +1106,6 @@ static void _php_mb_regex_ereg_replace_exec(INTERNAL_FUNCTION_PARAMETERS, OnigOp
|
||||
smart_str_appendl(&out_buf, Z_STRVAL(retval), Z_STRLEN(retval));
|
||||
smart_str_free(&eval_buf);
|
||||
zval_ptr_dtor(&retval);
|
||||
} else {
|
||||
if (!EG(exception)) {
|
||||
zend_throw_error(NULL, "Unable to call custom replacement function");
|
||||
zval_ptr_dtor(&subpats);
|
||||
RETURN_THROWS();
|
||||
}
|
||||
}
|
||||
zval_ptr_dtor(&subpats);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user