簡體   English   中英

致命錯誤:找不到類'DOMDocument',在我的PHP版本5.2.16中

[英]Fatal error: Class 'DOMDocument' not found and in my PHP Version 5.2.16

我的配置命令是如何解決這個問題

'./configure'' - host = i686-redhat-linux-gnu'' - build = i686-redhat-linux-gnu'' - target = i386-redhat-linux'' - program-prefix =' '--prefix = / usr'' - exec-prefix = / usr'' - bindind = / usr / bin''--sbindir = / usr / sbin'' - sysconfdir = / etc''--datadir = / usr / share'' - includey = / usr / include'' - libdir = / usr / lib'' - libdcdir = / usr / libexec'' - localstatedir = / var'' - sharedstatedir = / usr / com'' - mandir = / usr / share / man'' - infodir = / usr / share / info'' - cache-file = .. / config.cache'' - with-libdir = lib '' - with-config-file-path = / etc'' - with-config-file-scan-dir = / etc / php.d'' - disable-debug'' - with-pic'' --disable-rpath'' - without-pear'' - with-bz2'' - with-curl'' - with-exec-dir = / usr / bin'' - with-freetype-dir = / usr'' - with-png-dir = / usr'' - enable-gd-native-ttf'' - without-gdbm'' - with-gettext'' - with-gmp'' - with-iconv'' - with-jpeg-dir = / usr'' - with-openssl'' - with-pcre-regex = / usr'' - with-zlib'' - with-layout = GNU '' - enable-exif'' - enable-ftp''--enable-magic-quotes'' - enable-sockets'' - enable-sysvsem' '--enable-sysvshm'' - enable-sysvmsg'' - enable-wddx'' - with-kerberos'' - enable-ucd-snmp-hack'' - enable-shmop'' - enable -calendar'' - without-mime-magic'' - without-sqlite'' - with-libxml-dir = / usr'' - enable-xml'' - with-system-tzdata'' - with-apxs2 = / usr / sbin / apxs'' - without-mysql'' - without-gd''--disable-dom'' - disable-dba'' - without-unixODBC'' - disable -pdo'' - disable-xmlreader'' - disable-xmlwriter'' - disable-json'' - without-pspell'

“DomDocument”類是DOM擴展的一部分。 根據文件

默認情況下啟用此擴展。 可以在編譯時使用以下選項禁用它: - disable-dom

從配置腳本中刪除--disable-dom標志,該擴展應該可用。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM