summaryrefslogtreecommitdiff
path: root/src/snuffleupagus.c
diff options
context:
space:
mode:
authorBen Fuhrmannek2022-01-12 10:39:29 +0100
committerBen Fuhrmannek2022-01-12 10:39:29 +0100
commit22aeaa944bf5e0646b6ec06995a184d64a55ded0 (patch)
tree6f0d820a49e1a80c0f90cc7ce7e52ee09f35360e /src/snuffleupagus.c
parent494b4e778b93a065f0dd007786f90063f8a25702 (diff)
fixed compiler warning + better warning message
Diffstat (limited to 'src/snuffleupagus.c')
-rw-r--r--src/snuffleupagus.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/snuffleupagus.c b/src/snuffleupagus.c
index 53db721..caa6ba3 100644
--- a/src/snuffleupagus.c
+++ b/src/snuffleupagus.c
@@ -370,11 +370,11 @@ static PHP_INI_MH(OnUpdateConfiguration) {
370 370
371 if (SPCFG(show_old_php_warning) && getenv("SP_SKIP_OLD_PHP_CHECK") == NULL) { 371 if (SPCFG(show_old_php_warning) && getenv("SP_SKIP_OLD_PHP_CHECK") == NULL) {
372 time_t ts = time(NULL); 372 time_t ts = time(NULL);
373 if (PHP_VERSION_ID < 70300 || 373 if ((PHP_VERSION_ID < 70300) ||
374 PHP_VERSION_ID < 70400 && ts >= (time_t)1638745200L || 374 (PHP_VERSION_ID < 70400 && ts >= (time_t)1638745200L) ||
375 PHP_VERSION_ID < 80000 && ts >= (time_t)1669590000L || 375 (PHP_VERSION_ID < 80000 && ts >= (time_t)1669590000L) ||
376 PHP_VERSION_ID < 80100 && ts >= (time_t)1700953200L) { 376 (PHP_VERSION_ID < 80100 && ts >= (time_t)1700953200L)) {
377 sp_log_warn("End-of-Life Check", "Your PHP version '" PHP_VERSION "' is not officially mainained anymore. Please upgrade as soon as possible."); 377 sp_log_warn("End-of-Life Check", "Your PHP version '" PHP_VERSION "' is not officially mainained anymore. Please upgrade as soon as possible. - Note: This message can be switched off by setting 'sp.global.show_old_php_warning.disable();' in your rules file or by setting the environment variable SP_SKIP_OLD_PHP_CHECK=1.");
378 } 378 }
379 } 379 }
380 return SUCCESS; 380 return SUCCESS;