I've been trying to get DOM XML working with the new XML support (libxml2) for PHP 5. I've successfully configured and installed PHP 5 as an Apache2 module.
Even though PHP installs ok and phpinfo() reports that all is ok for XML, including DOM, the domxml functions are nowhere to be found.
The following is how I configured PHP 5:
'./configure' '--prefix=/usr/local/php5' '--enable-ftp' '--with-gd' '--with-mcrypt' '--with-mysql=/usr/local/mysql' '--enable-xml' '--with-dom=/usr/local/include/libxml2' '--with-dom-xslt=/usr/local/include/libxsl' '--with-libxml-dir=/usr/local/include/libxml' '--with-xsl=/usr/local/include/libxslt' '--with-zlib' '--with-regex=php' '--with-pgsql=/usr/local/pgsql' '--with-apxs2=/usr/local/apache2/bin/apxs'
Furthermore, this is what phpinfo() says about DOM and other XML related stuff:
[dom] DOM/XML enabled DOM/XML API Version 20030413 libxml Version 2.5.7 HTML Support enabled XPath Support enabled XPointer Support enabled
[xml] XML Support active XML Namespace Support active libxml2 Version 2.5.7
[xsl] XML/XSLT enabled DOM/XSLT enabled libxslt Version 1.0.30 libxslt compiled against libxml Version 2.5.7
I had absolutely no build problems, even though I can't seem to use DOM XML. I'm running RedHat Linux 9 with Apache 2.
Thanks for the direction! -Aaron Bockover
-- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php