PDO DSN generation failes when initStatement contains ; #6526
Labels
bug report
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Reproduced on 2.1.x
The issue has been reproduced on latest 2.1 release
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Reproduced on 2.3.x
The issue has been reproduced on latest 2.3 release
triage wanted
Preconditions
Steps to reproduce
app/etc/env.php
.initStatement
is the upper most entry.Expected result
Actual result
;
sign. Resulting in:The problem will be between the
initStatements=
and thedbname=
. The dubble semicolon will result in ignoring everything after it.By default the Magento setup will add initStatements with the semicolon on the end, which is the failt. The only reason why it isn't failing on all environments is order of the env.php array which will ignore nothing on the end of the generated DSN.
This affects Magento 2.1.1 and (not yet tested) everything < 2.1.1.
The text was updated successfully, but these errors were encountered: