You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The driver now requires 64-bit PHP. On 32-bit PHP it reports the requirement before opening the SQLite database. WordPress setup explains the requirement and blocks drop-in installation. Sites with an existing drop-in get the same check before WordPress initializes database storage.
The READMEs and Composer package requirements now reflect this limit. A CI test runs the driver on 32-bit PHP and checks that the connection fails before it creates a database file.
Why
Seeded RAND(), some numeric sql_mode values, and BIT defaults wider than 32 bits already rely on 64-bit integers. Rejecting an unsupported runtime at startup prevents these operations from returning or storing incorrect values.
No actionable comments were generated in the recent review.
Walkthrough
The SQLite driver and integration now require 64-bit PHP. Runtime checks reject or stop setup on 32-bit PHP, and Composer metadata and documentation state the requirement. A PHPUnit workflow job runs a test in a 32-bit PHP container.
The driver and Composer metadata specify 64-bit PHP. The driver rejects PHP with an integer size below 8. A test checks the exception and verifies that no database file is created; the workflow runs it in a 32-bit PHP container.
The integration skips database drop-in copying on 32-bit PHP, displays an admin notice, and throws a runtime exception when SQLite is selected. Its Composer metadata and documentation specify 64-bit PHP.
This change makes the SQLite driver and plugin fail clearly on 32-bit PHP instead of misbehaving, and documents the 64-bit requirement. No merge-blocking risk was identified.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "Require 64-bit PHP for the SQLite driver" matches the main change in the PR. The changeset adds a 64-bit PHP check to the SQLite driver constructor, the WordPress plugin setup and admin not…
Linked Issues check
[#638] The issue asks to state in the README and in the plugin readme.txt that 64-bit PHP is required. The reviewed head does this. The root README.md and packages/mysql-on-sqlite/README.md state the …
Out of Scope Changes check
All changed files relate to the single objective of #638: the 64-bit PHP requirement. Documentation files (READMEs, readme.txt, AGENTS.md) implement the stated objective. The driver constructor check …
Full details: Title check
Explanation
The title "Require 64-bit PHP for the SQLite driver" matches the main change in the PR. The changeset adds a 64-bit PHP check to the SQLite driver constructor, the WordPress plugin setup and admin notices, and the READMEs and Composer requirements. It also adds a CI test for 32-bit PHP. The title is short, specific, and states the primary change.
Full details: Linked Issues check
Explanation
[#638] The issue asks to state in the README and in the plugin readme.txt that 64-bit PHP is required. The reviewed head does this. The root README.md and packages/mysql-on-sqlite/README.md state the 64-bit requirement. packages/plugin-sqlite-database-integration/README.md states PHP 7.2+ on 64-bit systems. packages/plugin-sqlite-database-integration/readme.txt states the 64-bit requirement in the database requirements notice and in the FAQ. The assessed requirement is documentation. The AI-generated summaries of these files are the only evidence used; the file text was not read directly. The PR also adds runtime checks (driver constructor, admin notices, drop-in guard, Composer php-64bit platform requirement, and a 32-bit CI test). These checks go beyond the literal documentation request. They do not contradict the issue. No coding requirement from #638 remains unmet.
Full details: Out of Scope Changes check
Explanation
All changed files relate to the single objective of #638: the 64-bit PHP requirement. Documentation files (READMEs, readme.txt, AGENTS.md) implement the stated objective. The driver constructor check in class-wp-mysql-on-sqlite.php, the drop-in guard in db.php and activate.php, the admin notices in admin-notices.php and admin-page.php, and the Composer php-64bit platform requirements (root and plugin packages) enforce the same requirement at runtime. The 32-bit CI job and tests/32-bit-php.php verify it. The issue requests only documentation, so the runtime enforcement is broader than the issue text. The PR description states that enforcement is the intended purpose, and it links the change to the issue. No change shows a concrete lack of connection to the objective, so none is marked out of scope. The enforcement behavior should still be reviewed as a deliberate scope expansion.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.
This branch has not been deployed
No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The driver now requires 64-bit PHP. On 32-bit PHP it reports the requirement before opening the SQLite database. WordPress setup explains the requirement and blocks drop-in installation. Sites with an existing drop-in get the same check before WordPress initializes database storage.
The READMEs and Composer package requirements now reflect this limit. A CI test runs the driver on 32-bit PHP and checks that the connection fails before it creates a database file.
Why
Seeded
RAND(), some numericsql_modevalues, andBITdefaults wider than 32 bits already rely on 64-bit integers. Rejecting an unsupported runtime at startup prevents these operations from returning or storing incorrect values.Fixes #638.
Summary by CodeRabbit