Skip to content

fix: Correctly define MySQL constants#618

Merged
nicolas-grekas merged 1 commit into
symfony:1.xfrom
mitelg:fix/mysql-constants
May 26, 2026
Merged

fix: Correctly define MySQL constants#618
nicolas-grekas merged 1 commit into
symfony:1.xfrom
mitelg:fix/mysql-constants

Conversation

@mitelg
Copy link
Copy Markdown
Contributor

@mitelg mitelg commented May 26, 2026

hey 👋

the change made in #590 was wrong and is now breaking our CI pipeline.
The author assumed, the constants where defined under the same condition (see #590 (comment)), but actually they are not. If you look closely you see that there is first used a #ifndef (mind the n) and the ATTR_SSL_VERIFY_SERVER_CERT constant is defined with #ifdef (no n).

not sure if an additional condition is the correct solution, but checking for all four constants at the same time is definitely not correct. But having an additional check should also fix the original authors problem

Comment thread tests/Php84/PdoTest.php Outdated
Comment thread src/Php84/Resources/stubs/Pdo/Mysql.php Outdated
@nicolas-grekas
Copy link
Copy Markdown
Member

Thank you @mitelg.

@nicolas-grekas nicolas-grekas merged commit 8bc88fc into symfony:1.x May 26, 2026
20 checks passed
@mitelg mitelg deleted the fix/mysql-constants branch May 26, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants