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
In my case I used this in my Dockerfile, with an 3.8 alpine, php:5.6-alpine