For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > April 2006 > #37249 [Opn->Bgs]: Documentation on DOMDocument::load() incorrect









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #37249 [Opn->Bgs]: Documentation on DOMDocument::load() incorrect
bjori@php.net

2006-04-30, 8:00 am

ID: 37249
Updated by: bjori@php.net
Reported By: michiel at leegwtr dot demon dot nl
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: Any
PHP Version: Irrelevant
New Comment:

"This method may also be called statically to load and create a
DOMDocument object. The static invocation may be used when no
DOMDocument properties need to be set prior to loading."


Previous Comments:
------------------------------------------------------------------------

[2006-04-30 08:26:45] michiel at leegwtr dot demon dot nl

Description:
------------
The code listing in the webpage of php.net in the section
DOMDocument::load() shows

$doc=DOMDocument::load('blabla');
......

which is inconsistent with the method description which states that a
bool is returned, not an Object. It should state:

$doc = new DOMDocument();
$doc->load('blabla');



------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=37249&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com