mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
ext/mbstring: mb_ereg*_replace remove unreachable code. (#18646)
This commit is contained in:
parent
caf0a5352a
commit
16e154a2c4
1 changed files with 0 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue