ID: 16344
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: DOM XML related
Operating System: Linux
PHP Version: 4.1.2
New Comment:
By loading the GTK shared lib before the DOM, the problem does not
manifest itself.
Previous Comments:
------------------------------------------------------------------------
[2002-03-29 10:27:52] [EMAIL PROTECTED]
<?php
dl('domxml.so');
print("PHP Version ".phpversion()."\n");
$xml = "<foo><bar>123</bar></foo>";
$doc = xmldoc($xml);
print_r(domxml_dumpmem($doc));
?>
when run from the command line with php4 -q test.php
produces:
PHP Version 4.1.2
<?xml version="1.0"?>
<foo><bar>123</bar></foo>
as expected.
However:
by loading the php_gtk extensions before domxml, it breaks.
<?php
dl('php_gtk.so');
dl('domxml.so');
print("PHP Version ".phpversion()."\n");
$xml = "<foo><bar>123</bar></foo>";
$doc = xmldoc($xml);
print_r(domxml_dumpmem($doc));
?>
outputs:
PHP Version 4.1.2
<br />
<b>Warning</b>: xmldoc() unsupported node type: 0
in <b>/home/darrin/projects/exempla/test_xml.php</b> on line
<b>9</b><br />
<br />
<b>Warning</b>: xmldoc() cannot create required DOM object in
<b>/home/darrin/projects/exempla/test_xml.php</b> on line <b>9</b><br
/>
<br />
<b>Warning</b>: domxml_dumpmem() expects parameter 1 to be object,
boolean given in <b>/home/darrin/projects/exempla/test_xml.php</b> on
line <b>10</b><br />
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16344&edit=1