Last modified: 2012-05-28 19:50:44 UTC
Created attachment 10119 [details] Adding SQLite detection on modern PHPs When running the PHPUnit tests on recent PHP (with sqlite support enabled), the SQLite tests are skipped, as the SQLite detection does not detect SQLite support. Example system: Gentoo Linux 3.2.1-gentoo-r2 PHP 5.3.9-pl0-gentoo (with configure options '--enable-pdo' '--with-sqlite=/usr' '--enable-sqlite-utf8' '--with-sqlite3=/usr') The system's phpinfo yields: [...] PDO PDO support => enabled PDO drivers => mysql, pgsql, sqlite, sqlite2 [...] pdo_sqlite PDO Driver for SQLite 3.x => enabled SQLite Library => 3.7.9 [...] The attached patch allows to detect pdo_sqlite support using get_loaded_extensions, and uses the old detection method as fallback.
Thanks for the patch.
Is SQLite visible in installer for you?
(In reply to comment #2) > Is SQLite visible in installer for you? Yes. It is visible without the patch. It is still visible after the patch. But just to avoid confusion, I do not want to actually /use/ SQLite as backend. I only want to /run the SQLite tests/, even when I use the MySQL backend. This is to assure that changing something in one (seemingly unrelated) part of MW does not accidently break SQLite support.
Christian, thanks again for the patch. Are you interested in using developer access to directly suggest it into our Git source control system? https://www.mediawiki.org/wiki/Developer_access https://www.mediawiki.org/wiki/Git/Workflow#How_to_submit_a_patch
I cannot reproduce the original problem any longer -> Resolved/Worksforme.