1
0
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:
David CARLIER
2025-04-19 10:18:53 +01:00
committed by GitHub
parent 23687672f3
commit ba83d5daeb
4 changed files with 7 additions and 7 deletions

View File

@@ -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

View File

@@ -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) \

View File

@@ -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);

View File

@@ -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;