Either sqlsrv is special or "doctrine: dbal: url:" breaks configurations. #5967

Closed
opened 2026-01-22 15:23:33 +01:00 by admin · 1 comment
Owner

Originally created by @Sluimers on GitHub (May 17, 2018).

Originally assigned to: @Majkl578 on GitHub.

Bug Report

Symfony 4

Q A
BC Break As in does it break the app? yes.
Version 2.6.1

Summary

the url setting in doctrine: dbal: url: somehow causes an override to the pdo_mysql driver with placeholder values.

Current behavior

It searches for pdo_mysql driver.

afbeelding

How to reproduce

doctrine.yaml

doctrine:
    dbal:
        driver: sqlsrv
        url: '%env(resolve:DATABASE_URL)%'

Expected behavior

SQLSTATE [IMSSP, -1]: Invalid option was passed to sqlsrv_connect.

Originally created by @Sluimers on GitHub (May 17, 2018). Originally assigned to: @Majkl578 on GitHub. ### Bug Report Symfony 4 | Q | A |------------ | ------ | BC Break | As in does it break the app? yes. | Version | 2.6.1 #### Summary the url setting in doctrine: dbal: url: somehow causes an override to the pdo_mysql driver with placeholder values. #### Current behavior It searches for pdo_mysql driver. ![afbeelding](https://user-images.githubusercontent.com/235767/40187856-de62bf2c-59f8-11e8-8c54-3a17bd0731ac.png) #### How to reproduce doctrine.yaml ``` doctrine: dbal: driver: sqlsrv url: '%env(resolve:DATABASE_URL)%' ``` #### Expected behavior SQLSTATE [IMSSP, -1]: Invalid option was passed to sqlsrv_connect.
admin added the BugInvalid labels 2026-01-22 15:23:33 +01:00
admin closed this issue 2026-01-22 15:23:34 +01:00
Author
Owner

@Majkl578 commented on GitHub (May 19, 2018):

Hi, given the configuration snippet, I assume this happens in Symfony context. Please report this issue to DoctrineBundle repository.
It's not an ORM issue directly.

@Majkl578 commented on GitHub (May 19, 2018): Hi, given the configuration snippet, I assume this happens in Symfony context. Please report this issue to [DoctrineBundle](https://github.com/doctrine/DoctrineBundle) repository. It's not an ORM issue directly.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5967