1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

[skip ci] Remove unreachable code after zend_error_noreturn calls (GH-21122)

This commit is contained in:
Arshid
2026-02-04 02:32:43 +05:30
committed by GitHub
parent a5a0ff6448
commit b5abd77bdf
3 changed files with 0 additions and 3 deletions

View File

@@ -1153,7 +1153,6 @@ static zend_result ZEND_FASTCALL zend_ast_evaluate_inner(
if (args->children != 1 || args->child[0]->attr != ZEND_PLACEHOLDER_VARIADIC) {
/* TODO: PFAs */
zend_error_noreturn(E_COMPILE_ERROR, "Constant expression contains invalid operations");
return FAILURE;
}
switch (ast->kind) {

View File

@@ -2263,7 +2263,6 @@ static void zend_do_implement_interfaces(zend_class_entry *ce, zend_class_entry
if (UNEXPECTED(!(iface->ce_flags & ZEND_ACC_INTERFACE))) {
efree(interfaces);
zend_error_noreturn(E_ERROR, "%s cannot implement %s - it is not an interface", ZSTR_VAL(ce->name), ZSTR_VAL(iface->name));
return;
}
for (uint32_t j = 0; j < num_interfaces; j++) {
if (interfaces[j] == iface) {

View File

@@ -493,7 +493,6 @@ static ZEND_FUNCTION(zend_call_method)
ce = zend_lookup_class(Z_STR_P(class_or_object));
if (!ce) {
zend_error_noreturn(E_ERROR, "Unknown class '%s'", Z_STRVAL_P(class_or_object));
return;
}
} else {
zend_argument_type_error(1, "must be of type object|string, %s given", zend_zval_value_name(class_or_object));