diff -Nru phpmyadmin-5.2.1+dfsg/debian/changelog phpmyadmin-5.2.1+dfsg/debian/changelog --- phpmyadmin-5.2.1+dfsg/debian/changelog 2023-02-08 13:57:42.000000000 +0100 +++ phpmyadmin-5.2.1+dfsg/debian/changelog 2023-04-14 18:11:15.000000000 +0200 @@ -1,3 +1,9 @@ +phpmyadmin (4:5.2.1+dfsg-1ubuntu1) lunar; urgency=medium + + * Require PHP >= 8.0 (Ref: LP: #1975892, Ref: LP: #2016016) + + -- William Desportes Fri, 14 Apr 2023 18:11:15 +0200 + phpmyadmin (4:5.2.1+dfsg-1) unstable; urgency=medium * Add a d/pkg-php-tools-overrides to force the PHP 8.0 polyfill dep diff -Nru phpmyadmin-5.2.1+dfsg/debian/patches/Require-PHP-8.0.patch phpmyadmin-5.2.1+dfsg/debian/patches/Require-PHP-8.0.patch --- phpmyadmin-5.2.1+dfsg/debian/patches/Require-PHP-8.0.patch 1970-01-01 01:00:00.000000000 +0100 +++ phpmyadmin-5.2.1+dfsg/debian/patches/Require-PHP-8.0.patch 2023-04-14 18:11:06.000000000 +0200 @@ -0,0 +1,93 @@ +From: William Desportes +Date: Fri, 14 Apr 2023 18:06:39 +0200 +Subject: Require PHP >= 8.0 + +Origin: vendor +Forwarded: not-needed +--- + index.php | 9 +++++++-- + js/messages.php | 9 +++++++-- + setup/lib/common.inc.php | 9 +++++++-- + url.php | 9 +++++++-- + 4 files changed, 28 insertions(+), 8 deletions(-) + +diff --git a/index.php b/index.php +index 26fcabf..8831d47 100644 +--- a/index.php ++++ b/index.php +@@ -11,8 +11,13 @@ if (! defined('ROOT_PATH')) { + // phpcs:enable + } + +-if (PHP_VERSION_ID < 70205) { +- die('

PHP 7.2.5+ is required.

Currently installed version is: ' . PHP_VERSION . '

'); ++if (PHP_VERSION_ID < 80000) { ++ die( ++ '

PHP 8.0.0+ is required (' ++ . 'Ubuntu Launchpad bug #1975892' ++ . ' and phpMyAdmin issue #17503' ++ . ').

Currently installed version is: ' . PHP_VERSION . '

' ++ ); + } + + // phpcs:disable PSR1.Files.SideEffects +diff --git a/js/messages.php b/js/messages.php +index 927226b..1e2b249 100644 +--- a/js/messages.php ++++ b/js/messages.php +@@ -15,8 +15,13 @@ if (! defined('ROOT_PATH')) { + // phpcs:enable + } + +-if (PHP_VERSION_ID < 70205) { +- die('

PHP 7.2.5+ is required.

Currently installed version is: ' . PHP_VERSION . '

'); ++if (PHP_VERSION_ID < 80000) { ++ die( ++ '

PHP 8.0.0+ is required (' ++ . 'Ubuntu Launchpad bug #1975892' ++ . ' and phpMyAdmin issue #17503' ++ . ').

Currently installed version is: ' . PHP_VERSION . '

' ++ ); + } + + // phpcs:disable PSR1.Files.SideEffects +diff --git a/setup/lib/common.inc.php b/setup/lib/common.inc.php +index 17adc52..b681566 100644 +--- a/setup/lib/common.inc.php ++++ b/setup/lib/common.inc.php +@@ -6,8 +6,13 @@ use PhpMyAdmin\Common; + use PhpMyAdmin\Config\ConfigFile; + use PhpMyAdmin\DatabaseInterface; + +-if (PHP_VERSION_ID < 70205) { +- die('

PHP 7.2.5+ is required.

Currently installed version is: ' . PHP_VERSION . '

'); ++if (PHP_VERSION_ID < 80000) { ++ die( ++ '

PHP 8.0.0+ is required (' ++ . 'Ubuntu Launchpad bug #1975892' ++ . ' and phpMyAdmin issue #17503' ++ . ').

Currently installed version is: ' . PHP_VERSION . '

' ++ ); + } + + if (! defined('PHPMYADMIN')) { +diff --git a/url.php b/url.php +index 0274481..ebf69df 100644 +--- a/url.php ++++ b/url.php +@@ -11,8 +11,13 @@ if (! defined('ROOT_PATH')) { + // phpcs:enable + } + +-if (PHP_VERSION_ID < 70205) { +- die('

PHP 7.2.5+ is required.

Currently installed version is: ' . PHP_VERSION . '

'); ++if (PHP_VERSION_ID < 80000) { ++ die( ++ '

PHP 8.0.0+ is required (' ++ . 'Ubuntu Launchpad bug #1975892' ++ . ' and phpMyAdmin issue #17503' ++ . ').

Currently installed version is: ' . PHP_VERSION . '

' ++ ); + } + + // phpcs:disable PSR1.Files.SideEffects diff -Nru phpmyadmin-5.2.1+dfsg/debian/patches/series phpmyadmin-5.2.1+dfsg/debian/patches/series --- phpmyadmin-5.2.1+dfsg/debian/patches/series 2023-02-08 13:57:42.000000000 +0100 +++ phpmyadmin-5.2.1+dfsg/debian/patches/series 2023-04-14 18:11:06.000000000 +0200 @@ -9,3 +9,4 @@ Drop-depends-on-paragonie-sodium_compat-since-PHP-7.2-is-required.patch Skip-part-of-RoutingTest-testGetDispatcher.patch Adjust-path-for-source-files-in-tests.patch +Require-PHP-8.0.patch