Skip to content

Conversation

@zerkms
Copy link
Contributor

@zerkms zerkms commented Sep 2, 2019

It addresses #731 and my own issue: for not having the RTree extension built-in

I have found a way to build an extension externally and load it using a recipe like https://gist.github.com/zerkms/916cbe1a7714b4feead487dfb8e1e97d

But there are problems with it: it's error prone - the version of sqlite3 should be kept in sync with php, otherwise subtle bugs may occur. Also, it requires dynamic feature detection, which makes applications more complicated.

Given 7.4 switched to the external sqlite3, and given that the sqlite3 dev package is available inside the image nevertheless - what do you think about having all the versions built against the external sqlite3 library?

Thanks.

Fixes #731

@zerkms zerkms force-pushed the feature/SQLITE_RTREE branch from 94a0a90 to 38784bb Compare September 2, 2019 22:22
@tianon tianon force-pushed the feature/SQLITE_RTREE branch from 38784bb to 3a54676 Compare October 2, 2019 23:05
@tianon
Copy link
Member

tianon commented Oct 2, 2019

Oh, I hadn't noticed that 7.4+ removed the bundled sqlite entirely! 🎉

I've updated this to add a reference to the exact upstream commit that removes the bundled sqlite (php/php-src@6083a38) so it's more clear why we're breaking from our normal of trusting PHP's bundled libraries. 👍

@tianon tianon merged commit e568fc2 into docker-library:master Oct 3, 2019
@tianon
Copy link
Member

tianon commented Oct 3, 2019

Thanks!

@zerkms zerkms deleted the feature/SQLITE_RTREE branch October 3, 2019 21:06
tianon pushed a commit to docker-library/official-images that referenced this pull request Oct 4, 2019
Changes:

- docker-library/php@5aea77c: Update to 7.4.0RC3
- docker-library/php@e568fc2: Merge pull request docker-library/php#884 from zerkms/feature/SQLITE_RTREE
- docker-library/php@3a54676: Always build with external sqlite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sqlite is missing json1 support

2 participants