Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[RFC] Transition SQLite3 to exceptions#11058

Merged
Girgias merged 8 commits into
php:masterphp/php-src:masterfrom
bohwaz:sqlite3/exceptions-8.3bohwaz/php-src:sqlite3/exceptions-8.3Copy head branch name to clipboard
Jul 3, 2023
Merged

[RFC] Transition SQLite3 to exceptions#11058
Girgias merged 8 commits into
php:masterphp/php-src:masterfrom
bohwaz:sqlite3/exceptions-8.3bohwaz/php-src:sqlite3/exceptions-8.3Copy head branch name to clipboard

Conversation

@bohwaz
Copy link
Copy Markdown
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
Comment thread ext/sqlite3/sqlite3.c Outdated
Comment thread ext/sqlite3/sqlite3.c
Comment thread ext/sqlite3/sqlite3.c Outdated
Comment thread ext/sqlite3/sqlite3.stub.php Outdated
@bohwaz
Copy link
Copy Markdown
Contributor Author

bohwaz commented May 23, 2023

The RFC was accepted 21 to zero.

Copy link
Copy Markdown
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

Comment thread ext/sqlite3/tests/sqlite3_defensive.phpt Outdated
@bohwaz
Copy link
Copy Markdown
Contributor Author

bohwaz commented Jul 1, 2023

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

@devnexen
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

Girgias commented Jul 3, 2023

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

@bohwaz
Copy link
Copy Markdown
Contributor Author

bohwaz commented Jul 3, 2023

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

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.