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

Deprecate driver specific PDO methods #19596

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
arnaud-lb wants to merge 3 commits into php:master from arnaud-lb:pdo-deprecations-methods

Conversation

Copy link
Member

@arnaud-lb arnaud-lb commented Aug 26, 2025

This implements the "Deprecate driver specific PDO methods" part of https://wiki.php.net/rfc/deprecations_php_8_5.

Constants were handled in #19526.

@arnaud-lb arnaud-lb force-pushed the pdo-deprecations-methods branch from 3044969 to 776cfa2 Compare August 26, 2025 14:23
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Annoying that we can't just add it to the fake stubs, but this alternative makes sense to me :)

arnaud-lb reacted with thumbs up emoji
arnaud-lb and others added 2 commits August 27, 2025 17:04
@arnaud-lb arnaud-lb marked this pull request as ready for review August 27, 2025 16:09
@arnaud-lb arnaud-lb requested a review from a team August 27, 2025 16:10
Copy link
Member

@DanielEScherzer DanielEScherzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RM approval, technical review not performed

Small question inline in my capacity as someone working with gen_stub, but this is approved regardless

}
/* }}} */

/* We cannot add #[Deprecated] attributes in @generate-function-entries stubs,
Copy link
Member

@DanielEScherzer DanielEScherzer Aug 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh? Why not? Can you expand no this a bit?
If the support from gen_stub is missing I can try to add it

Copy link
Member Author

@arnaud-lb arnaud-lb Aug 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've expanded a bit when replying to @mvorisek above: #19596 (comment)

Possibly we could improve that a little by adding support for attributes to zend_function_entry, expose a function that copies zend_function_entry attributes to a zend_function, and use that in pdo_dbh.c.

Reviewers

@devnexen devnexen devnexen approved these changes

@Girgias Girgias Girgias approved these changes

@DanielEScherzer DanielEScherzer DanielEScherzer approved these changes

@SakiTakamachi SakiTakamachi Awaiting requested review from SakiTakamachi SakiTakamachi is a code owner

+1 more reviewer

@mvorisek mvorisek mvorisek left review comments

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /