https://bugzilla.wikimedia.org/show_bug.cgi?id=34759
Web browser: ---
Bug #: 34759
Summary: Improve SQLite detection, to be able to execute SQLite
tests
Product: MediaWiki
Version: 1.20-svn
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Maintenance scripts
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
Created attachment 10119
--> https://bugzilla.wikimedia.org/attachment.cgi?id=10119
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.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l