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

Fix -Wstrict-prototypes warnings in fuzzer SAPI (#11277)

This commit is contained in:
Niels Dossche
2023-05-20 11:43:30 +02:00
committed by GitHub
parent afcf97b2a4
commit 1fe7dc31ef

View File

@@ -80,7 +80,7 @@ static void send_header(sapi_header_struct *sapi_header, void *server_context)
{
}
static char* read_cookies()
static char* read_cookies(void)
{
/* TODO: fuzz these! */
return NULL;
@@ -172,7 +172,7 @@ int fuzzer_init_php(const char *extra_ini)
return SUCCESS;
}
int fuzzer_request_startup()
int fuzzer_request_startup(void)
{
if (php_request_startup() == FAILURE) {
php_module_shutdown();
@@ -188,7 +188,7 @@ int fuzzer_request_startup()
return SUCCESS;
}
void fuzzer_request_shutdown()
void fuzzer_request_shutdown(void)
{
zend_try {
/* Destroy thrown exceptions. This does not happen as part of request shutdown. */
@@ -207,7 +207,7 @@ void fuzzer_request_shutdown()
}
/* Set up a dummy stack frame so that exceptions may be thrown. */
void fuzzer_setup_dummy_frame()
void fuzzer_setup_dummy_frame(void)
{
static zend_execute_data execute_data;
static zend_function func;