From d119267f3cfc3b2cc682e79ca7f480118ac8d3c8 Mon Sep 17 00:00:00 2001 From: Daniel Scherzer Date: Mon, 23 Nov 2026 15:57:46 -0800 Subject: [PATCH] main: voidify `php_startup_sapi_content_types()` It always returned `SUCCESS`, and the return value was never checked. --- main/php_content_types.c | 3 +-- main/php_content_types.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/main/php_content_types.c b/main/php_content_types.c index c727d0ed3314..8609df308844 100644 --- a/main/php_content_types.c +++ b/main/php_content_types.c @@ -37,12 +37,11 @@ SAPI_API SAPI_POST_READER_FUNC(php_default_post_reader) /* }}} */ /* {{{ php_startup_sapi_content_types */ -int php_startup_sapi_content_types(void) +void php_startup_sapi_content_types(void) { sapi_register_default_post_reader(php_default_post_reader); sapi_register_treat_data(php_default_treat_data); sapi_register_input_filter(php_default_input_filter, NULL); - return SUCCESS; } /* }}} */ diff --git a/main/php_content_types.h b/main/php_content_types.h index e734bb1963cd..65786392f28b 100644 --- a/main/php_content_types.h +++ b/main/php_content_types.h @@ -17,7 +17,7 @@ SAPI_API SAPI_POST_READER_FUNC(php_default_post_reader); SAPI_API SAPI_POST_HANDLER_FUNC(php_std_post_handler); -int php_startup_sapi_content_types(void); +void php_startup_sapi_content_types(void); int php_setup_sapi_content_types(void); #endif /* PHP_CONTENT_TYPES_H */