The problem I ran into is that the libtidy that ext-tidy compiles against on recent
(3.7+) Alpine distributions is 5.6.0, while Debian-based distributions use libtidy 5.2.0.
When applications using ext-tidy run against libtidy 5.6.0, they produce content that
libxml2 cannot deal with (e.g., when using DOMDocument::loadXML()
), whereas the earlier
versions work fine.
As such, I needed to find a way to:
- Install libtidy 5.2.0
- Compile ext-tidy against it
That's totally a potential approach as well. Considering that most of the dev dependencies are already present to allow
docker-php-ext-install
to be able to do its work, that would be a nice alternative to adding the dev packages from a previous version. I'll definitely be giving this a try!