php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #32808 non-existing function domdocument::loadXML()
Submitted: 2005-04-24 12:19 UTC Modified: 2005-04-25 10:38 UTC
From: sofa77 at gmx dot de Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: win xp
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sofa77 at gmx dot de
New email:
PHP Version: OS:

 

 [2005-04-24 12:19 UTC] sofa77 at gmx dot de
Description:
------------
for any reason (that i don't know) this function does not exist in php 5.0.4, tested on windows xp.

<?php
$dom = new DOMDocument(null);
$dom->loadXML('<root>hhh</root>');
?>

will cause an error:
Fatal error: Call to undefined method domdocument::loadXML() ...

Reproduce code:
---------------
<?php
$dom = new DOMDocument(null);
$dom->loadXML('<root>hhh</root>');
?>

Expected result:
----------------
nothing

Actual result:
--------------
Fatal error: Call to undefined method domdocument::loadXML() in d:\eigene\_project\eva\www\php\Domain\FormValidator\Ims.class.php on line 136

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-25 10:24 UTC] vrana@php.net
DOMDocument::loadXML should still exists in 5.0.4, so this is not a documentation issue. I can't reproduce your error and the function really still exists, so this is not even the source code problem.

Try to consult support forums. Although you provided simple example, actual result is not from it ("error on line 136") so the problem probably lies somewhere else.
 [2005-04-25 10:38 UTC] sofa77 at gmx dot de
hey,

the error message is from my original script, but i also created this very simple example script i posted here. i just copied the error from the wrong script.

additionally i traced get_class_methods($myDomObject), which also didn't had this function. 

sorry, i can't give you the functions list, because i removed php 5.0.4 from my machine.

best, andi
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 16:01:35 2024 UTC