Skip to content

Commit 16e154a

Browse files
authored
ext/mbstring: mb_ereg*_replace remove unreachable code. (#18646)
1 parent caf0a53 commit 16e154a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ext/mbstring/php_mbregex.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,12 +1106,6 @@ static void _php_mb_regex_ereg_replace_exec(INTERNAL_FUNCTION_PARAMETERS, OnigOp
11061106
smart_str_appendl(&out_buf, Z_STRVAL(retval), Z_STRLEN(retval));
11071107
smart_str_free(&eval_buf);
11081108
zval_ptr_dtor(&retval);
1109-
} else {
1110-
if (!EG(exception)) {
1111-
zend_throw_error(NULL, "Unable to call custom replacement function");
1112-
zval_ptr_dtor(&subpats);
1113-
RETURN_THROWS();
1114-
}
11151109
}
11161110
zval_ptr_dtor(&subpats);
11171111
}

0 commit comments

Comments
 (0)