I found the answer. There is a nifty option you can send to configure so that you don´t have to delete config.cache between each try (--cache-file=/dev/null). So here is how I did it:
./configure --with-apxs --with-mysql --cache-file=/dev/null --enable-track-vars --enable-magic-quotes --enable-debugger --enable-xslt --with-xslt-sablot --with-dom --with-zlib-dir=/usr/src/zlib-1.1.3 --with-xml
make
make clean (this is the command I was missing)
make install
Restart Apache and that´s it.
Joe, about the JS_Property error. I don´t get that error (or anyone else) but when I try to access DOM functions (such as in this article: http://www.devshed.com/Server_Side/XML/XMLwithPHP/XMLwithPHP2/page1.html) I get nothing. I can parse an XML file, use Sablotron, stylesheets etc but all functions in DOM that deals with parents and children just wont work. Have they changed the function calls in php 4.1.2?
Here´s an example
test.php:
<?
// data file
$file = "takt.xml";
// create a document object
$dom = xmldocfile($file);
// get XML version
echo "Version: " . $dom->version . "<br>\n";
// get XML encoding
echo "Encoding: " . $dom->encoding . "<br>\n";
// get whether standalone file
echo "Standalone: " . $dom->standalone . "<br>\n";
// get XML URL
echo "URL: " . $dom->url . "<br>\n";
// get XML character set
echo "Character set: " . $dom->charset . "<br>\n";
// get reference to root node
$root = $dom->root();
// get name of node - "me"
echo "root type: " . $root->type . "<br>\n";
echo "root name: " . $root->name . "<br>\n";
// get children of node, as array
$children = $root->children();
// get first child node
$firstChild = $children[0];
// let's see a few node properties
// get name of first child node - "name"
echo "firstChild name: " . $firstChild->name . "<br>\n";
// get content of first child node - "Joe Cool"
echo "firstChild content: " . $firstChild->content . "<br>\n";
// get type of first child node - "1", or "XML_ELEMENT_NODE"
echo "firstChild type: " . $firstChild->type . "<br>\n";
// go back up the tree!
// get parent of child - this should be <me>
$parentNode = $firstChild->parent();
// check it...yes, it is "me"!
echo "parentNode name: " . $parentNode->name . "<br>\n";
?>
takt.xml is too big to post here but it+s an ordinary XML file, nothing fancy.
This is what test.php produces:
Version: 1.0
Encoding: UTF-8
Standalone: -1
URL: takt.xml
Character set: 1
root type: 1
root name:
firstChild name:
firstChild content:
firstChild type: 1
parentNode name:
So name and content returns nada. Can anyone please shed some light on this.