summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/snuffleupagus.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/snuffleupagus.c b/src/snuffleupagus.c
index ebb7f9c..06b93e1 100644
--- a/src/snuffleupagus.c
+++ b/src/snuffleupagus.c
@@ -426,7 +426,7 @@ static void dump_config() {
426 array_init(&arr_cookies); 426 array_init(&arr_cookies);
427 427
428 sp_cookie *cookie; 428 sp_cookie *cookie;
429 sp_list_node *p = SPCFG(cookie).cookies; 429 const sp_list_node *p = SPCFG(cookie).cookies;
430 for (; p; p = p->next) { 430 for (; p; p = p->next) {
431 zval arr_cookie; 431 zval arr_cookie;
432 array_init(&arr_cookie); 432 array_init(&arr_cookie);
@@ -610,7 +610,9 @@ static PHP_INI_MH(OnUpdateConfiguration) {
610 (PHP_VERSION_ID < 70400 && ts >= (time_t)1638745200L) || 610 (PHP_VERSION_ID < 70400 && ts >= (time_t)1638745200L) ||
611 (PHP_VERSION_ID < 80000 && ts >= (time_t)1669590000L) || 611 (PHP_VERSION_ID < 80000 && ts >= (time_t)1669590000L) ||
612 (PHP_VERSION_ID < 80100 && ts >= (time_t)1700953200L)) { 612 (PHP_VERSION_ID < 80100 && ts >= (time_t)1700953200L)) {
613 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."); 613 sp_log_warn("End-of-Life Check", "Your PHP version '" PHP_VERSION "' is not officially maintained anymore. " \
614 "Please upgrade as soon as possible. - Note: This message can be switched off by setting " \
615 "'sp.global.show_old_php_warning.disable();' in your rules file or by setting the environment variable SP_SKIP_OLD_PHP_CHECK=1.");
614 } 616 }
615 } 617 }
616 return SUCCESS; 618 return SUCCESS;