php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26530 domxml_new_doc didn't create new document class
Submitted: 2003-12-05 05:09 UTC Modified: 2003-12-10 10:48 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: jury at hightech dot lv Assigned:
Status: No Feedback Package: DOM XML related
PHP Version: 4.3.4 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: jury at hightech dot lv
New email:
PHP Version: OS:

 

 [2003-12-05 05:09 UTC] 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:


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-05 05:34 UTC] 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:37 UTC] jury at hightech dot lv
My version: LibXML 2.4.28
 [2003-12-05 05:41 UTC] derick@php.net
Then please upgrade libxml and recompile PHP against this new version.
 [2003-12-10 10:48 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 03 07:01:28 2024 UTC