-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ext/pdo_pgsql: Remove new PDO class constant specific to PGSQL driver #16755
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, I approve of this. Thanks!
cc: @KentarouTakeda
Note that this constant is already documented: https://www.php.net/manual/en/ref.pdo-pgsql.php#pdo-pgsql.constants |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! It seems we need to fix the way we specify the class.
If we don't specify the class in the FQCN, it will be assumed that it doesn't exist and the test will be skipped.
(Even if php>=8.4, this function may not be supported if the linked client library libpq
is an extremely old version, so this skip judgment is necessary.)

Co-authored-by: KentarouTakeda <takeda@youmind.jp>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This constant is set on the new Pgsql driver and the purpose of those new subclasses is to handle those sort of constants.
Remove this being set on the PDO class before this version is actually released.
Requires RM approval: @php/release-managers-84