Bug #16344 Updated: GTK causes DOM xmldoc to fail
| From: | darrin at exempla dot com dot au | Date: | Sat, 30 Mar 2002 05:06:43 +0000 |
| Subject: | Bug #16344 Updated: GTK causes DOM xmldoc to fail | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-3643@lists.php.net to get a copy of this message | ||
ID: 16344
Updated by: darrin@exempla.com.au
Reported By: darrin@exempla.com.au
Status: Open
Bug Type: DOM XML related
Operating System: Linux
PHP Version: 4.1.2
New Comment:
That should be:
By loading the GTK shared lib AFTER the DOM, the problem does not
manifest itself.
Previous Comments:
------------------------------------------------------------------------
[2002-03-30 00:04:33] darrin@exempla.com.au
By loading the GTK shared lib before the DOM, the problem does not
manifest itself.
------------------------------------------------------------------------
[2002-03-29 10:27:52] darrin@exempla.com.au
<?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