#16344 [Fbk->NoF]: GTK causes DOM xmldoc to fail
| From: | php-bugs at lists dot php dot net | Date: | Fri, 25 Oct 2002 06:00:04 +0000 |
| Subject: | #16344 [Fbk->NoF]: GTK causes DOM xmldoc to fail | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23264@lists.php.net to get a copy of this message | ||
ID: 16344
Updated by: php-bugs@lists.php.net
Reported By: darrin@exempla.com.au
-Status: Feedback
+Status: No Feedback
Bug Type: DOM XML related
Operating System: Linux
PHP Version: 4.1.2
New Comment:
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2002-10-09 11:33:09] iliaa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-03-30 00:06:42] darrin@exempla.com.au
That should be:
By loading the GTK shared lib AFTER the DOM, the problem does not
manifest itself.
------------------------------------------------------------------------
[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