mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
sapi/litespeed and ext/standard: Fix few build warnings. (#18265)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) \
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user