[BUGFIX] DBAL: use correct default value for native connection 40/45340/2
authorMelanie Kalka <melanie.kalka@sunzinet.com>
Thu, 17 Dec 2015 16:22:52 +0000 (17:22 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Thu, 17 Dec 2015 16:23:49 +0000 (17:23 +0100)
commitf1c4c1782419c7c3913b01c2b5f854753ddc599b
tree87184ee4f0b9d9cde50c767c2587a23e7f3243b4
parentdc0134b0cafb5d3b166720263b4f1cae8990052a
[BUGFIX] DBAL: use correct default value for native connection

DBAL uses an empty string for the portnumber parameter
for mysqli real_connect, which results in a PHP warning,
because an integer (or null) is required.

Changing the fallback to null resolves this issue and
results in a working database connection.

Resolves: #72285
Releases: master, 6.2
Change-Id: Ie0e04f3ab04996ab634f99c3d2ab545d4a3b3819
Reviewed-on: https://review.typo3.org/45340
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/dbal/Classes/Database/DatabaseConnection.php