Skip to content

Commit 49a04cf

Browse files
committed
ext/standard/mail.c: remove useless default case
All other values of the enum are checked
1 parent 876fb36 commit 49a04cf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ext/standard/mail.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,6 @@ static void php_mail_build_headers_elem(smart_str *s, const zend_string *key, zv
154154
case CONTAINS_NULL:
155155
zend_value_error("Header \"%s\" contains NULL character that is not allowed in the header", ZSTR_VAL(key));
156156
return;
157-
default:
158-
// fallback
159-
zend_value_error("Header \"%s\" has invalid format, or contains invalid characters", ZSTR_VAL(key));
160-
return;
161157
}
162158
smart_str_append(s, key);
163159
smart_str_appendl(s, ": ", 2);

0 commit comments

Comments
 (0)