-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ext/pdo_pgsql: Delete unused constants #18358
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
If that s the case, you need to remove the entries in the related stub too and regenerate using build/gen_stub.php |
Would be good to have a NEWS and above all an UPGRADING entry. |
These constants were added by 6ed1819 but they are not used anymore. They are undocumented which is why I've stumbled upon this.
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.
LCTM @SakiTakamachi please have a look
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, thanks.
Just to be sure, I did a GitHub code search, but it seems there is no (public) code that uses these.
Is there any harm in keeping them around and deprecating them in 8.5? Just because they are not used on GitHub doesn't mean they aren't used somewhere offline |
Like where? Do you have some example? |
You could not know, but it would not make any sense, the driver only cares if the transaction is not idle and the precise state of the said transaction is not even acknowledged from the userland standpoint, only the raw pgsql extension does though. |
gonna merge it @vrana I just forgot your PR |
This is API break however so this should not be done no matter if they are used or not. You would need RFC for such change. @devnexen Please revert it. |
The only way to drop them is through deprecation RFC |
Well it would be probably also possible to create a separate RFC. In any case you cannot just drop constant through PR. |
done |
You can add this to https://wiki.php.net/rfc/deprecations_php_8_5 |
These constants were added by 6ed1819 but they are not used anymore.
They are undocumented which is why I've stumbled upon this.