#16344 [Opn->Fbk]: GTK causes DOM xmldoc to fail

From: Date: Wed, 09 Oct 2002 16:33:09 +0000
Subject: #16344 [Opn->Fbk]: GTK causes DOM xmldoc to fail
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21945@lists.php.net to get a copy of this message
ID: 16344 Updated by: iliaa@php.net Reported By: darrin@exempla.com.au -Status: Open +Status: Feedback Bug Type: DOM XML related Operating System: Linux PHP Version: 4.1.2 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#21945) next »