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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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 Dec 21 16:01:28 2024 UTC