PHP Fatal error: Call to undefined function dom_import_simplexml()
PHP Fatal error: Call to undefined function dom_import_simplexml() in /usr/share/pear/XML/RPC2/Backend/Php/Value.php on line 230
というエラーが出て、dom_import_simplexml()関数が使えなかった。
解決策:php-domのインストール
-bash-4.1# yum install php-dom
]Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
* epel: ftp.kddilabs.jp
* rpmforge: mirror.fairway.ne.jp
* rpmforge-extras: mirror.fairway.ne.jp
1771 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-xml.x86_64 0:5.3.3-14.el6_3 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================================
Installing:
php-xml x86_64 5.3.3-14.el6_3 updates 101 k
Transaction Summary
=====================================================================================================================================================================================
Install 1 Package(s)
Total download size: 101 k
Installed size: 307 k
Is this ok [y/N]: y
Is this ok [y/N]: y
Downloading Packages:
php-xml-5.3.3-14.el6_3.x86_64.rpm | 101 kB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php-xml-5.3.3-14.el6_3.x86_64 1/1
Verifying : php-xml-5.3.3-14.el6_3.x86_64 1/1
Installed:
php-xml.x86_64 0:5.3.3-14.el6_3
Complete!
-bash-4.1# service httpd restart