使用未定义的常数LIBXML_HTML_NOIMPLIED [英] Use of undefined constant LIBXML_HTML_NOIMPLIED

查看:128
本文介绍了使用未定义的常数LIBXML_HTML_NOIMPLIED的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将一些DOM操作代码部署到了我们的登台服务器,并收到错误消息:

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'

在使用WAMP的桌面上,我没有任何问题,并且找不到与之相关的任何模块.

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

我们的Centos 6服务器似乎正在使用PHP 5.4.34版本,并安装了libxml2-2.7.6-1.

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

我已经搜索了我们的php.ini文件,没有提到'libxml',并且phpinfo()为我提供了lib_xml的以下部分:

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

为什么不定义此常量?

推荐答案

您的libxml版本几乎是 :

Your libxml version is almost there:

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

仅在Libxml中可用> = 2.7.7

Only available in Libxml >= 2.7.7

这篇关于使用未定义的常数LIBXML_HTML_NOIMPLIED的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆