php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16344 GTK causes DOM xmldoc to fail
Submitted: 2002-03-29 10:27 UTC Modified: 2002-10-25 01:00 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: darrin at exempla dot com dot au Assigned:
Status: No Feedback Package: DOM XML related
PHP Version: 4.1.2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
27 - 19 = ?
Subscribe to this entry?

 
 [2002-03-29 10:27 UTC] darrin at exempla dot com dot 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 />


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-30 00:04 UTC] darrin at exempla dot com dot au
By loading the GTK shared lib before the DOM, the problem does not manifest itself.
 [2002-03-30 00:06 UTC] darrin at exempla dot com dot au
That should be:

By loading the GTK shared lib AFTER the DOM, the problem does not manifest itself.
 [2002-10-09 11:33 UTC] 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-10-25 01:00 UTC] php-bugs at lists dot php dot net
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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 11:01:30 2024 UTC