Skip to content
Snippets Groups Projects
Commit 004193a6 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[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: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent db0607da
Branches
Tags
No related merge requests found
...@@ -31,6 +31,9 @@ class DatabaseConnectionPostgresqlTest extends AbstractTestCase ...@@ -31,6 +31,9 @@ class DatabaseConnectionPostgresqlTest extends AbstractTestCase
*/ */
protected function setUp() protected function setUp()
{ {
if (!defined('ADODB_ASSOC_CASE')) {
define('ADODB_ASSOC_CASE', ADODB_ASSOC_CASE_NATIVE);
}
$configuration = [ $configuration = [
'handlerCfg' => [ 'handlerCfg' => [
'_DEFAULT' => [ '_DEFAULT' => [
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment