Skip to content

Fix few build warnings. #18265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/standard/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ PHPAPI int php_exec(int type, const char *cmd, zval *array, zval *return_value)
php_stream *stream;
size_t buflen, bufl = 0;
#if PHP_SIGCHILD
void (*sig_handler)() = signal(SIGCHLD, SIG_DFL);
void (*sig_handler)(int) = signal(SIGCHLD, SIG_DFL);
#endif

#ifdef PHP_WIN32
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/mail.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ PHPAPI bool php_mail(const char *to, const char *subject, const char *message, c
const char *hdr = headers;
char *ahdr = NULL;
#if PHP_SIGCHILD
void (*sig_handler)() = NULL;
void (*sig_handler)(int) = NULL;
#endif

#define MAIL_RET(val) \
Expand Down
8 changes: 4 additions & 4 deletions sapi/litespeed/lsapi_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1678,11 +1678,11 @@ PHP_FUNCTION(litespeed_response_headers)
char headerBuf[SAPI_LSAPI_MAX_HEADER_LENGTH];

if (zend_parse_parameters_none() == FAILURE) {
RETURN_THROWS();
}
RETURN_THROWS();
}

if (!&SG(sapi_headers).headers) {
RETURN_FALSE;
if (!zend_llist_count(&SG(sapi_headers).headers)) {
RETURN_FALSE;
}
array_init(return_value);

Expand Down
2 changes: 1 addition & 1 deletion sapi/litespeed/lscriu.c
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ static int LSCRIU_Init_Env_Parameters(void)
}


void LSCRIU_inc_req_processed()
void LSCRIU_inc_req_processed(void)
{
if (!LSCRIU_Get_Global_Counter_Type()) {
++s_requests_count;
Expand Down
Loading