-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Deprecate mysqli_refresh #11929
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
Deprecate mysqli_refresh #11929
Conversation
It can also go in 8.4. I am fine either way. |
yeah agreed better to target 8.4 as this should have some discussion most likely. |
IMO, it needs corresponding information in the changelog, because it's either way deprecation. |
I have added this to PHP 8.4 deprecation list https://wiki.php.net/rfc/deprecations_php_8_4#deprecate_mysqli_refresh While I haven't included the 9 constants that are used with this function in the PR, I wonder if the constants should also be marked as deprecated. They will be removed when this function gets removed in PHP 9.0, but it's unlikely they have ever been used for anything other than this function. |
Makes sense, maybe just mention the constants in the RFC text? |
Should be rebased onto master and the use of |
@kamil-tekiela could you rebase this? |
77a45f4
to
f7d649d
Compare
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 if CI is green
Looking at the commit, it looks like the functions have been deprecated, but the constants have not been (though are unlikely to be used with anything but these functions). The RFC vote question was, however, "Deprecate mysqli_refresh(), mysqli::refresh() and related constants?", which leads me to believe the constants should also be formally deprecated. I can see some discussion about this above, but would like to make sure anyway. Was there a particular reason not to deprecate the constants ? |
EDIT: Kamil beat me to it: #15358 |
This functions was using the binary protocol command
COM_REFRESH
which is deprecated as of MySQL 5.7. We should not be using deprecated commands, so let's deprecate this function which has very easy alternatives in plain text SQL. See:We didn't have any tests for it so there was nothing to adjust.