php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #36651 DOMDocument::Load() should not be called statically
Submitted: 2006-03-08 00:48 UTC Modified: 2006-03-08 04:04 UTC
From: shadda at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Non Applicable
Private report: No CVE-ID: None
 [2006-03-08 00:48 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-08 04:04 UTC] takagi@php.net
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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 07 09:01:33 2025 UTC