Use of undefined constant LIBXML_HTML_NOIMPLIED

穿精又带淫゛_ 提交于 2019-12-12 19:16:44

问题


I have just deployed some DOM Manipulation code to our staging server and am getting the error:

[PHP notice] Use of undefined constant LIBXML_HTML_NOIMPLIED - assumed 'LIBXML_HTML_NOIMPLIED'

I have no issues on my desktop using WAMP and cannot find any modules that appear to be related.

Our Centos 6 server appears to be using PHP version 5.4.34 with libxml2-2.7.6-1 installed.

I have searched our php.ini file and there is no mention of 'libxml' and phpinfo() gives me the following section for lib_xml:

libxml

libXML support => active
libXML Compiled Version => 2.7.6
libXML Loaded Version => 20706
libXML streams => enabled

Why would this constant be undefined?


回答1:


Your libxml version is almost there:

From http://php.net/manual/en/libxml.constants.php#constant.libxml-html-noimplied:

Only available in Libxml >= 2.7.7



来源:https://stackoverflow.com/questions/36935960/use-of-undefined-constant-libxml-html-noimplied

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!