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
Disable sqlite3 and pdo_sqlite by default #3610
Conversation
Since libsqlite has been unbundled[1], it makes sense to change the defaults of building ext/sqlite3 and ext/pdo_sqlite, i.e. to disable both extensions by default – this is more in line with other bundled extension which rely on external dependencies. Nothing has to be done for Windows, since both extensions are disabled by default already. [1] <http://git.php.net/?p=php-src.git;a=commit;h=6083a387a81dbbd66d6316a3a12a63f06d5f7109>
This issue has been pointed out by @sgolemon. Thanks! I'm not sure whether the Travis configuration would have to be adjusted to still build the extensions and run the respective tests. |
This sort of breaks the assumptions that SQLite is always available by default. A lot of projects use SQLite as a fallback/default database backend. Also according to docs:
[1] http://php.net/manual/en/sqlite3.installation.php |
@Majkl578 I'm not totally happy about this change, but what if there's no libsqlite3 available on the system? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look like a good idea: yes, SQLite may not exist on the target system, in which case the build will fail, and that's OK.
That's probably something that should've been considered before unbundling SQLite, but not as a reason to disable it by default.
Yes, and in this case they can still use |
IIRC we also require libxml2 in a default build, so there's precedent here. On the other hand, IMHO you should not draw any conclusions of availability based on the "default" build. Unless it's part of |
Indeed. Thanks! So I tend to withdraw this PR, but I'll keep it open for while – maybe there are still good reasons to change the defaults. |
Okay, no further input – closing. |
Since libsqlite has been unbundled[1], it makes sense to change the
defaults of building ext/sqlite3 and ext/pdo_sqlite, i.e. to disable
both extensions by default – this is more in line with other bundled
extension which rely on external dependencies.
Nothing has to be done for Windows, since both extensions are disabled
by default already.
[1] http://git.php.net/?p=php-src.git;a=commit;h=6083a387a81dbbd66d6316a3a12a63f06d5f7109