#39057 [NEW]: Documented static method isn't
| From: | nickj-phpbugs at nickj dot org | Date: | Fri, 06 Oct 2006 08:17:52 +0000 |
| Subject: | #39057 [NEW]: Documented static method isn't | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-103176@lists.php.net to get a copy of this message | ||
From: nickj-phpbugs at nickj dot org
Operating system: Ubuntu Linux
PHP version: 5CVS-2006-10-06 (snap)
PHP Bug Type: DOM XML related
Bug description: Documented static method isn't
Description:
------------
From http://php.net/manual/en/function.dom-domdocument-load.php
: "This
method may also be called statically to load and create a DOMDocument
object." There is also a code example. Running the static example code
with E_ALL | E_STRICT error_reporting generates a warning.
Reproduce code:
---------------
echo "<blah/>" > file.xml
php5.2-200610042230/sapi/cli/php -r 'error_reporting(E_ALL | E_STRICT);
$doc = DOMDocument::load("file.xml");'
Expected result:
----------------
No error.
Actual result:
--------------
PHP Strict Standards: Non-static method DOMDocument::load() should not be
called statically in Command line code on line 1
--
Edit bug report at http://bugs.php.net/?id=39057&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39057&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39057&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39057&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39057&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=39057&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39057&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39057&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39057&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39057&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39057&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=39057&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=39057&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39057&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39057&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39057&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39057&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39057&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39057&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39057&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39057&r=mysqlcfg