Skip to content

[RFC] Transition SQLite3 to exceptions #11058

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 8 commits into from
Jul 3, 2023

Conversation

bohwaz
Copy link
Contributor

@bohwaz bohwaz commented Apr 11, 2023

With this patch, exceptions are thrown using the SQLite3Exception class, and enabling warnings is deprecated.

Also, the error code is passed as the exception code, and not in the error message anymore.

BC-break: yes.

RFC: https://wiki.php.net/rfc/sqlite3_exceptions

@bohwaz bohwaz requested a review from kocsismate as a code owner April 11, 2023 12:05
@bohwaz bohwaz changed the title Transition SQLite3 to exceptions (RFC) [RFC] Transition SQLite3 to exceptions Apr 11, 2023
@bohwaz
Copy link
Contributor Author

bohwaz commented May 23, 2023

The RFC was accepted 21 to zero.

Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

Could you update the UPGRADING file with a relevant entry

@bohwaz
Copy link
Contributor Author

bohwaz commented Jul 1, 2023

Can we get this merged for PHP 8.3? Thanks :)

@devnexen
Copy link
Member

devnexen commented Jul 1, 2023

Would you mind rebasing your branch please ? It ll be merged in due time no worries :)

@bohwaz
Copy link
Contributor Author

bohwaz commented Jul 1, 2023

I'm sorry but git is bringing thousands of unrelated changes when doing "git rebase -i", don't you have a github button to do that?

@Girgias Girgias force-pushed the sqlite3/exceptions-8.3 branch from 066dd7d to 4973ca3 Compare July 3, 2023 03:13
@Girgias Girgias added this to the PHP 8.3 milestone Jul 3, 2023
@Girgias
Copy link
Member

Girgias commented Jul 3, 2023

@bohwaz Can you just double check that I rebased the branch correctly?

@bohwaz
Copy link
Contributor Author

bohwaz commented Jul 3, 2023

Thank you very much, I don't see any issue so far.

@Girgias Girgias merged commit ddd9a08 into php:master Jul 3, 2023
iluuu1994 added a commit to iluuu1994/php-src that referenced this pull request Jul 4, 2023
llaville added a commit to llaville/php-compatinfo-db that referenced this pull request Oct 11, 2023
llaville added a commit to llaville/php-compatinfo-db that referenced this pull request Nov 18, 2023
llaville added a commit to llaville/php-compatinfo-db that referenced this pull request Nov 23, 2023
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