Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Cache][HttpFoundation][Lock] Fix empty username/password for PDO PostgreSQL#52457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

HypeMC
Copy link
Member

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
Issues-
LicenseMIT

Currentlypdo_pgsql has a bug where the username & password arguments have precedence over the DSN, even thoughtaccording to the docs it should be the other way. This was recently fixed on PHP's side, but itwon't be available till 8.4.

Since the bug is not present when the values passed arenull, which are the default argument values anyway, this PR changes the default values of the properties to match.

@HypeMC
Copy link
MemberAuthor

Don't know if I should ignore fabbot. Even though the default property values are useless on 5.4, they are required on 6.x because of the type hints.

fabpot added a commit that referenced this pull requestNov 5, 2023
This PR was merged into the 6.4 branch.Discussion----------[Cache] Fix property types in PdoAdapter| Q             | A| ------------- | ---| Branch?       | 6.3| Bug fix?      | no| New feature?  | no| Deprecations? | no| Issues        | -| License       | MITI've noticed this while working on#52457, there's no reason these properties should be mixed as far as I can tell.Commits-------f306b74 [Cache] Fix property types in PdoAdapter
@nicolas-grekasnicolas-grekasforce-pushed thefix-pdo-postgres-default-username-and-password branch from5c67a6e to534c34cCompareNovember 6, 2023 17:37
@nicolas-grekas
Copy link
Member

Thank you@HypeMC.

@nicolas-grekasnicolas-grekas merged commitde8c5fc intosymfony:5.4Nov 6, 2023
@HypeMCHypeMC deleted the fix-pdo-postgres-default-username-and-password branchNovember 6, 2023 20:44
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@jderussejderusseAwaiting requested review from jderussejderusse is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
5.4
Development

Successfully merging this pull request may close these issues.

3 participants
@HypeMC@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp