略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: 安装

2024-11-14

安装

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

add a noteadd a note

User Contributed Notes 2 notes

up
11
atom_box at example dot com
1 year ago
This dom extension was *not* enabled by default on Ubuntu 20.

Composer had thrown this during phpunit installation: `must enable php dom extension`.

That problem went away once I ran `sudo apt-get install php-xml`. Now everything is fine; phpunit installed fine.
up
-1
Anonymous
6 months ago
warning, if you are compiling PHP with --disable-all , you need both --with-libxml *and* --enable-dom for DOMDocument & co

i'm not sure --enable-dom is even documented? (even though --disable-dom is documented)

官方地址:https://www.php.net/manual/en/dom.installation.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3