FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=18560&edit=1

ID: 18560
Updated by: helgith@gmail.com
Reported By: Keisial at gmail dot com
Summary: static PEAR:isError function is not declared static
-Status: Open
+Status: Wont fix
Type: Bug
Package: PEAR
Package Version: SVN
PHP Version: Irrelevant
Roadmap Versions:
New Comment:

-Status: Open
+Status: Wont fix
This is not a problem due to this code being PHP 4 compatible but mostly
that it wasn't
always documented as static. Backwards compatibility has to be kept to
the various
code bases that either extend the PEAR class or use it via object model.


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

[2011-05-24 21:04:16] keisial

Description:
------------
PEAR:isError() function is documented[1] as being a static function.
However, the function declaration[2] is *not* static which yield
E_STRICT errors in modern PHP versions.
Other functions there also need that change, but PEAR::isError() is one
of the worst offenders. Given that static functions are even compatible
with the EOLed PHP4, I expecte there is no problem in adding one keyword
there.

1- http://pear.php.net/manual/en/core.pear.pear.intro.php
2-
http://svn.php.net/viewvc/pear/pear-core/trunk/PEAR.php?view=markup#l250

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouppear-bugs @
categoriesphp
postedJun 1, '11 at 2:27a
activeJun 1, '11 at 2:27a
posts1
users1
websitepear.php.net

1 user in discussion

Helgith: 1 post

People

Translate

site design / logo © 2021 Grokbase