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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: darrin at exempla dot com dot au
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sat Oct 05 22:01:26 2024 UTC