安装

此扩展默认为启用,编译时可通过下列选项禁用: --disable-xml

这些函数默认启用,使用了捆绑的 expat 库。可以通过参数 --disable-xml 来禁用 XML 的支持。如果将 PHP 编译为 Apache 1.3.9 或更高版本的一个模块,PHP 将自动使用 Apache 捆绑的 expat 库。如果不希望使用该捆绑的 expat 库,请使用 --with-expat-dir=DIR 配置(configure) PHP,其中 DIR 应该指向 expat 安装的根目录。

PHP 的 Windows 版本已内建对此扩展的支持。不需要载入额外的扩展来使用这些函数。

add a note add a note

User Contributed Notes 1 note

up
-2
Alex Ivaylov
6 years ago
Ubuntu users, please note that this extension might not enabled for you by default. You may need to install by doing "sudo apt-get install php-xml" followed by web server restart.
To Top