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
Would compiling from source be a viable solution for you?
If so, the modified Dockerfile would look something like this:
I've pushed my test build to my Docker Hub: 'docker pull andrewscaya/test_php7211-tidy520'. You can pull the image and see if this is enough to "fix" the issue for now.
If I can be of any further help, please let me know. Cheers!