From 004193a6111b8eb08424bd270392112563a7bf46 Mon Sep 17 00:00:00 2001 From: Christian Kuhn <lolli@schwarzbu.ch> Date: Sun, 3 Dec 2017 20:21:18 +0100 Subject: [PATCH] [BUGFIX] Undefined constant ADODB_ASSOC_CASE adodb (v7 only) expects constant ADODB_ASSOC_CASE to be set. PHP 7.2 now throws warnings if constants are not defined. Patch defines ADODB_ASSOC_CASE in unit test setUp() if it not has been defined before. Change-Id: Ie338c3e871ae0eb2f8536515c65b556381bf65c3 Resolves: #83210 Releases: 7.6 Reviewed-on: https://review.typo3.org/54924 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> --- .../Tests/Unit/Database/DatabaseConnectionPostgresqlTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionPostgresqlTest.php b/typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionPostgresqlTest.php index b17b08bace72..fc87af0d565e 100644 --- a/typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionPostgresqlTest.php +++ b/typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionPostgresqlTest.php @@ -31,6 +31,9 @@ class DatabaseConnectionPostgresqlTest extends AbstractTestCase */ protected function setUp() { + if (!defined('ADODB_ASSOC_CASE')) { + define('ADODB_ASSOC_CASE', ADODB_ASSOC_CASE_NATIVE); + } $configuration = [ 'handlerCfg' => [ '_DEFAULT' => [ -- GitLab