#36651 [Opn->Csd]: DOMDocument::Load() should not be called statically

From: Date: Wed, 08 Mar 2006 03:04:16 +0000
Subject: #36651 [Opn->Csd]: DOMDocument::Load() should not be called statically
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969372292@lists.php.net to get a copy of this message
ID: 36651 Updated by: takagi@php.net Reported By: shadda at gmail dot com -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Non Applicable PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2006-03-08 00:48:57] shadda at gmail dot com Description: ------------ The examples found at http://us2.php.net/manual/en/function.xsl-xsltprocessor-construct.php, show the use of DOMDocument::load() function called statically. However, this violates STRICT standards, as you ca n see... root@carbonix:/home/shadda# php -r 'DOMDocument::load("test.xml");' PHP Strict Standards: Non-static method DOMDocument::load() should not be called statically in Command line code on line 1 The correct method would be to instantiate a DOMDocument object, and use the public load() method. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36651&edit=1

« previous php.doc (#969372292) next »