diff options
| author | jvoisin | 2024-03-08 15:36:49 +0100 |
|---|---|---|
| committer | jvoisin | 2024-03-08 15:36:49 +0100 |
| commit | 9b0cf1b7dee2b6830def207cd3de993346fac404 (patch) | |
| tree | a37d0d3b937e5230594760ea90dd73aca5d24789 | |
| parent | 697a6c0a8c1fa601caf201e8a2ea470f312dc11b (diff) | |
Update the deprecation checks
| -rw-r--r-- | src/snuffleupagus.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/snuffleupagus.c b/src/snuffleupagus.c index 21bf66b..8e4f85f 100644 --- a/src/snuffleupagus.c +++ b/src/snuffleupagus.c | |||
| @@ -608,13 +608,12 @@ static PHP_INI_MH(OnUpdateConfiguration) { | |||
| 608 | 608 | ||
| 609 | if (SPCFG(show_old_php_warning) && getenv("SP_SKIP_OLD_PHP_CHECK") == NULL) { | 609 | if (SPCFG(show_old_php_warning) && getenv("SP_SKIP_OLD_PHP_CHECK") == NULL) { |
| 610 | const time_t ts = time(NULL); | 610 | const time_t ts = time(NULL); |
| 611 | if ((PHP_VERSION_ID < 70300) || | 611 | if ((PHP_VERSION_ID < 80100) || |
| 612 | (PHP_VERSION_ID < 70400 && ts >= (time_t)1638745200L) || | 612 | (PHP_VERSION_ID < 80200 && ts >= (time_t)1732492800L) || |
| 613 | (PHP_VERSION_ID < 80000 && ts >= (time_t)1669590000L) || | 613 | (PHP_VERSION_ID < 80300 && ts >= (time_t)1765152000L) || |
| 614 | (PHP_VERSION_ID < 80100 && ts >= (time_t)1700953200L)) { | 614 | (PHP_VERSION_ID < 80400 && ts >= (time_t)1795392000L)) { |
| 615 | sp_log_warn("End-of-Life Check", "Your PHP version '" PHP_VERSION "' is not officially maintained anymore. " \ | 615 | sp_log_warn("End-of-Life Check", "Your PHP version '" PHP_VERSION "' is not officially maintained anymore, see https://www.php.net/supported-versions.php for details. " \ |
| 616 | "Please upgrade as soon as possible. - Note: This message can be switched off by setting " \ | 616 | "Please upgrade as soon as possible."); |
| 617 | "'sp.global.show_old_php_warning.disable();' in your rules file or by setting the environment variable SP_SKIP_OLD_PHP_CHECK=1."); | ||
| 618 | } | 617 | } |
| 619 | } | 618 | } |
| 620 | return SUCCESS; | 619 | return SUCCESS; |
