php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #62766 Non-static method DOMDocument::loadXML() should not be called statically
Submitted: 2012-08-07 07:32 UTC Modified: 2012-08-07 07:36 UTC
From: apathetic012 at gmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.4Git-2012-08-07 (snap) OS: Debian
Private report: No CVE-ID: None
 [2012-08-07 07:32 UTC] apathetic012 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/domdocument.loadxml#refsect1-
domdocument.loadxml-examples
---

Non-static method DOMDocument::loadXML() should not be called statically

Test script:
---------------
$doc = DOMDocument::loadXML($uploaded);


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-07 07:36 UTC] aharvey@php.net
It's already documented that this works, but generates an E_STRICT error.
 [2012-08-07 07:36 UTC] aharvey@php.net
-Status: Open +Status: Not a bug
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 13:00:02 2026 UTC