#37249 [NEW]: Documentation on DOMDocument::load() incorrect

From: Date: Sun, 30 Apr 2006 08:26:45 +0000
Subject: #37249 [NEW]: Documentation on DOMDocument::load() incorrect
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969372812@lists.php.net to get a copy of this message
From: michiel at leegwtr dot demon dot nl Operating system: Any PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: Documentation on DOMDocument::load() incorrect 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 bug report at http://bugs.php.net/?id=37249&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37249&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37249&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37249&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37249&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37249&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37249&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37249&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37249&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37249&r=support Expected behavior: http://bugs.php.net/fix.php?id=37249&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37249&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37249&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37249&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37249&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37249&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37249&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37249&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37249&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37249&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37249&r=mysqlcfg

« previous php.doc (#969372812) next »