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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sun Jun 16 04:01:28 2024 UTC