I've installed simplexml-1.0.1. Regarding the following scenario, any attempt to call a function from a PHP Version 5.4.20 script results in a fatal error:
phpinfo() reveals the following:
. . .but not SimpleXML support! (...which I do find in another installed PHP Version 5.2.17 on another server.)
I've already recompiled PHP, but I did not see a configuration option to specify simplexml support, re. the following:
Is there another configuration scenario that I'm overlooking?
# php test_simplexml.php
Code:
// test_simplexml.php
<?php
$xml = simplexml_load_string($xmlstring);
?>
Code:
Fatal error: Call to undefined function simplexml_load_string() in [FILE]test_simplexml.php[/FILE] on line 4
Code:
XML Support active
XML Namespace Support active
libxml2 Version 2.8.0
I've already recompiled PHP, but I did not see a configuration option to specify simplexml support, re. the following:
# make config
Code:
┌─────────────────────────────── php5-5.4.20 ──────────────────────────────────â”
[x] CLI Build CLI version
[x] CGI Build CGI version
[ ] FPM Build FPM version
[x] APACHE Build Apache module
[x] AP2FILTER Use Apache 2.x filter interface (experimental)
[ ] EMBED Build embedded library
[ ] DEBUG Enable debug
[ ] DTRACE Enable DTrace support
[x] IPV6 Enable ipv6 support
[ ] MAILHEAD Enable mail header patch
[x] LINKTHR Link thread lib (for threaded extensions)
[ ] ZTS Force Zend Thread Safety (ZTS) build