Edit report at http://pear.php.net/bugs/bug.php?id=18638&edit=1
ID: 18638
Updated by: helgith@gmail.com
Reported By: sergiosgc at gmail dot com
Summary: Static method PEAR::load Extension() generates
warning on static call
Status: Open
Type: Bug
Package: PEAR
Operating System: Irrelevant
Package Version: SVN
PHP Version: 5.3.6
Roadmap Versions:
New Comment:
I am sorry but I can not fix that. PEAR.php is not a PHP 5+ package, it
is PHP 4 for BC
reasons.
I can put it into the PEAR5 class but that is not really meant to be
used directly by
people (at the moment); So far it has been there so the shutdown
functions can run
without a problem.
Previous Comments:
------------------------------------------------------------------------
[2011-06-30 15:32:16] sergiosgc
Description:
------------
This is a relocation of bug 18405 reported on XML_RPC2:
https://pear.php.net/bugs/bug.php?id=18405
PEAR::loadExtension is documented as static:
http://pear.php.net/manual/en/core.pear.pear.loadextension.php
but if used as in the documentation, with E_STRICT enabled, PHP outputs:
PHP Strict Standards: Non-static method PEAR::loadExtension() should not
be called statically
This is caused by the missing 'static' keyword in the function
definition, although it is a static function.
------------------------------------------------------------------------