Doc #62766 [Opn->Nab]: Non-static method DOMDocument::loadXML() should not be called statically

From: Date: Tue, 07 Aug 2012 07:36:42 +0000
Subject: Doc #62766 [Opn->Nab]: Non-static method DOMDocument::loadXML() should not be called statically
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8708@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62766&edit=1 ID: 62766 Updated by: aharvey@php.net Reported by: apathetic012 at gmail dot com Summary: Non-static method DOMDocument::loadXML() should not be called statically -Status: Open +Status: Not a bug Type: Documentation Problem Package: Documentation problem Operating System: Debian PHP Version: 5.4Git-2012-08-07 (snap) Block user comment: N Private report: N New Comment: It's already documented that this works, but generates an E_STRICT error. Previous Comments: ------------------------------------------------------------------------ [2012-08-07 07:32:32] 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); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62766&edit=1

« previous php.doc.bugs (#8708) next »