I've been debugging a case where a PHP installation doesn't have
DOMDocument->loadHTML, but phpinfo reports that HTML is enabled (the
normal reason why loadHTML would not be available) and that the API
version of 20031129. Is there any other way to check for the
compile-time constant LIBXML_HTML_ENABLED, and are there any known bugs
with regards to its display?
Thanks,
Edward
I've been debugging a case where a PHP installation doesn't have
DOMDocument->loadHTML, but phpinfo reports that HTML is enabled
Ugh? It's the same #ifdef.
Is there any other way to check for the
compile-time constant LIBXML_HTML_ENABLED
What do you mean?
Is there a way to do this #ifdef in a different way?
and are there any known bugs with regards to its display?
None that I know of.
And even if there are, I don't believe they are on our side,
since it's the same #ifdef used in two different places,
no chance to get different values.
--
Wbr,
Antony Dovgal
Antony Dovgal wrote:
And even if there are, I don't believe they are on our side, since it's
the same #ifdef used in two different places, no chance to get different
values.
Yep. I did more source diving and this should not be possible. Which
means that whoever deployed this PHP (i.e. the hosting company) has been
monkeying around with the source. :-(