#26530 [Opn->Fbk]: domxml_new_doc didn't create new document class

From: Date: Fri, 05 Dec 2003 10:34:06 +0000
Subject: #26530 [Opn->Fbk]: domxml_new_doc didn't create new document class
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-51720@lists.php.net to get a copy of this message
ID: 26530 Updated by: sniper@php.net Reported By: jury at hightech dot lv -Status: Open +Status: Feedback Bug Type: DOM XML related Operating System: Linux PHP Version: 4.3.4 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip I get exactly what your expected result is using the latest CVS snapshot. So please try it out. (I have libxml 2.5.11, check your version too) Previous Comments: ------------------------------------------------------------------------ [2003-12-05 05:09:48] jury at hightech dot lv Description: ------------ When PHP CGI extension call function domxml_new_doc("1.0") it show an error without returning an object. Reproduce code: --------------- #!/usr/local/bin/php_new -q <? $doc = domxml_new_xmldoc("1.0"); echo "Dom Object: $doc\n"; ?> Expected result: ---------------- "Dom Object: Object" Actual result: -------------- PHP Warning: domxml_new_xmldoc(): Unsupported node type: 0 in /tmp/temp/test.php on line 3 <br /> <b>Warning</b>: domxml_new_xmldoc(): Unsupported node type: 0 in <b>/tmp/temp/test.php</b> on line <b>3</b><br /> PHP Warning: domxml_new_xmldoc(): Cannot create required DOM object in /tmp/temp/test.php on line 3 <br /> <b>Warning</b>: domxml_new_xmldoc(): Cannot create required DOM object in <b>/tmp/temp/test.php</b> on line <b>3</b><br /> Dom Object: ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26530&edit=1

« previous php.bugs (#51720) next »