Bug #16344: GTK causes DOM xmldoc to fail
| From: | darrin at exempla dot com dot au | Date: | Fri, 29 Mar 2002 15:27:53 +0000 |
| Subject: | Bug #16344: GTK causes DOM xmldoc to fail | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-3609@lists.php.net to get a copy of this message | ||
From: darrin@exempla.com.au
Operating system: Linux
PHP version: 4.1.2
PHP Bug Type: DOM XML related
Bug description: GTK causes DOM xmldoc to fail
<?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 bug report at http://bugs.php.net/?id=16344&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16344&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16344&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16344&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16344&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16344&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16344&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16344&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16344&r=submittedtwice