#26530 [Fbk->Opn]: domxml_new_doc didn't create new document class
| From: | jury at hightech dot lv | Date: | Fri, 05 Dec 2003 10:37:06 +0000 |
| Subject: | #26530 [Fbk->Opn]: domxml_new_doc didn't create new document class | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-51721@lists.php.net to get a copy of this message | ||
ID: 26530
User updated by: jury at hightech dot lv
Reported By: jury at hightech dot lv
-Status: Feedback
+Status: Open
Bug Type: DOM XML related
Operating System: Linux
PHP Version: 4.3.4
New Comment:
My version: LibXML 2.4.28
Previous Comments:
------------------------------------------------------------------------
[2003-12-05 05:34:05] sniper@php.net
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)
------------------------------------------------------------------------
[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