Skip to content

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

Closed
wants to merge 2 commits into from

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Nov 11, 2024

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

Copy link
Member

@SakiTakamachi SakiTakamachi left a 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

@cmb69
Copy link
Member

cmb69 commented Nov 11, 2024

Note that this constant is already documented: https://www.php.net/manual/en/ref.pdo-pgsql.php#pdo-pgsql.constants

Copy link
Contributor

@KentarouTakeda KentarouTakeda left a 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.)

test-pdo-pgsql-constant

Co-authored-by: KentarouTakeda <takeda@youmind.jp>
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

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

lgtm

@Girgias Girgias closed this in 5e360b6 Nov 16, 2024
@Girgias Girgias deleted the pdo-pgsql-new-constant branch November 16, 2024 16:31
Girgias added a commit to Girgias/php-src that referenced this pull request Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants