[PEAR-BUG] Bug #18638 [Opn]: Static method PEAR::load Extension() generates warning on static call

[email protected]
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at http://pear.php.net/bugs/bug.php?id=18638&edit=1

 ID:               18638
 Updated by:       [email protected]
 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.

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


-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18638&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.