Skip to content

Remove HAVE_SQLITE3_{CLOSE_V2,ERRSTR} #18963

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

petk
Copy link
Member

@petk petk commented Jun 27, 2025

It would be kind of good to follow up on these minimum version bumps and clean the code on the way. I should recheck this a bit if everything is fine but these could be probably changed...

As of PHP 8.5 the minimum required SQLite library is 3.7.17, and this removes the following preprocessor macros checks:

  • HAVE_SQLITE3_CLOSE_V2 (sqlite3_close_v2() function is available since SQLite 3.7.14.)
  • HAVE_SQLITE3_ERRSTR (sqlite3_errstr() function is available since SQLite 3.7.15)
  • SQLITE_VERSION_NUMBER should be now always greater than 3006011 (3.6.11).

Otherwise, tests fail when using SQLite 3.7.17 due to unconditional usage of SQLITE_DETERMINISTIC and similar... but this is for now not important.

As of PHP 8.5 the minimum required SQLite library is 3.7.17, and this
removes the following preprocessor macros checks:

- HAVE_SQLITE3_CLOSE_V2 (sqlite3_close_v2() function is available since
  SQLite 3.7.14.)
- HAVE_SQLITE3_ERRSTR (sqlite3_errstr() function is available since
  SQLite 3.7.15)
- SQLITE_VERSION_NUMBER should be now always greater than 3006011
  (3.6.11).
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.

1 participant