PHP 7 simpleXML

前端 未结 9 1102
一整个雨季
一整个雨季 2020-12-14 05:19

I\'m testing PHP7, and have a weird issue after a recent update. SimpleXML should be enabled by default, and my phpinfo page shows that it is available:

相关标签:
9条回答
  • 2020-12-14 06:02

    ------------------in centos-------------------------

    find out which package provides php-xml:

     yum provides php-xml
    

    then from the output list,select the appropriate one, install

    yum install php70u-xml-7.0.14-2.ius.centos7.x86_64
    
    0 讨论(0)
  • 2020-12-14 06:06

    Because Google led me here, on Ubuntu 20.04 this works in 2020:

    sudo apt install php7.4-xml
    

    If on Apache2, remember to restart (probably not necessary):

    sudo systemctl restart apache2
    
    0 讨论(0)
  • 2020-12-14 06:11

    I'm using Bash on Windows (Ubuntu 16.04) and I just installed with php7.0-xml and all is working now for the Symfony 3.2.7 PHP requirements.

    sudo apt-get install php7.0-xml
    
    0 讨论(0)
提交回复
热议问题