Skip to content

Make PDO_MYSQL_ATTR_DIRECT_QUERY a proper alias #16935

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

Merged
merged 1 commit into from
Dec 26, 2024

Conversation

kamil-tekiela
Copy link
Member

No description provided.

Comment on lines 33 to 39
/** @cvalue PDO_MYSQL_ATTR_COMPRESS */
public const int ATTR_COMPRESS = UNKNOWN;

/** @cvalue PDO_MYSQL_ATTR_DIRECT_QUERY */
/** @cvalue PDO_ATTR_EMULATE_PREPARES */
public const int ATTR_DIRECT_QUERY = UNKNOWN;

/** @cvalue PDO_MYSQL_ATTR_FOUND_ROWS */
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should remove this from 8.4 as it is a new class and barely out? @php/release-managers-84 what do you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

PHP 8.4 is out already. Maybe it would be better to drop in 8.5?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, but I would consider this a "fix" to remove this useless constant, and considering it would be early in the release of it I'm not sure that it is that problematic, we fixed various named parameters up until PHP 8.0.3 to make them consistent.

Copy link
Member

@kocsismate kocsismate left a comment

Choose a reason for hiding this comment

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

I'm fine with this as-is.

@kamil-tekiela kamil-tekiela merged commit f055447 into php:master Dec 26, 2024
10 checks passed
@kamil-tekiela
Copy link
Member Author

Does this need an UPGRADING entry?

@SakiTakamachi
Copy link
Member

It won't change anything for the user, right?

If so, I don't think there's any need the UPGRADING entry.

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.

4 participants