From eb341e83504e84271ccd46c5aeddbc7a1f7832b8 Mon Sep 17 00:00:00 2001 From: Arshid Date: Fri, 9 Jan 2026 00:03:08 +0530 Subject: [PATCH 1/2] Skip PDO::PGSQL_TRANSACTION* constants test on PHP 8.6+ --- ext/pdo_pgsql/tests/transations_deprecations.phpt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/pdo_pgsql/tests/transations_deprecations.phpt b/ext/pdo_pgsql/tests/transations_deprecations.phpt index 7aa51b47f7698..2dacc039212d0 100644 --- a/ext/pdo_pgsql/tests/transations_deprecations.phpt +++ b/ext/pdo_pgsql/tests/transations_deprecations.phpt @@ -7,6 +7,9 @@ pdo if (substr(PHP_OS, 0, 3) == 'WIN') { die('skip Not for Windows!'); } +if (version_compare(PHP_VERSION, '8.5.0', '>')) { + die('skip PDO::PGSQL_TRANSACTION* constants removed in PHP 8.6'); +} ?> --FILE-- Date: Fri, 9 Jan 2026 09:48:47 +0530 Subject: [PATCH 2/2] Removed transations_deprecations --- .../tests/transations_deprecations.phpt | 36 ------------------- 1 file changed, 36 deletions(-) delete mode 100644 ext/pdo_pgsql/tests/transations_deprecations.phpt diff --git a/ext/pdo_pgsql/tests/transations_deprecations.phpt b/ext/pdo_pgsql/tests/transations_deprecations.phpt deleted file mode 100644 index 2dacc039212d0..0000000000000 --- a/ext/pdo_pgsql/tests/transations_deprecations.phpt +++ /dev/null @@ -1,36 +0,0 @@ ---TEST-- -Test PDO::PGSQL_TRANSACTION* constants. ---EXTENSIONS-- -pdo ---SKIPIF-- -')) { - die('skip PDO::PGSQL_TRANSACTION* constants removed in PHP 8.6'); -} -?> ---FILE-- - ---EXPECTF-- -Deprecated: Constant PDO::PGSQL_TRANSACTION_IDLE is deprecated since 8.5 in %s on line %d -int(0) - -Deprecated: Constant PDO::PGSQL_TRANSACTION_ACTIVE is deprecated since 8.5 in %s on line %d -int(1) - -Deprecated: Constant PDO::PGSQL_TRANSACTION_INTRANS is deprecated since 8.5 in %s on line %d -int(2) - -Deprecated: Constant PDO::PGSQL_TRANSACTION_INERROR is deprecated since 8.5 in %s on line %d -int(3) - -Deprecated: Constant PDO::PGSQL_TRANSACTION_UNKNOWN is deprecated since 8.5 in %s on line %d -int(4)