| Newsgroups |
php.pear.bugs |
| Message-ID |
<[email protected]> |
Edit report at http://pear.php.net/bugs/bug.php?id=18663&edit=1
ID: 18663
Comment by: [email protected]
Reported By: ch at lathspell dot de
Summary: Strict notice: PEAR::isError() should not be called
statically
Status: Wont fix
Type: Bug
Package: Net_Sieve
Package Version: 1.3.0
PHP Version: 5.3.6
Roadmap Versions:
New Comment:
I understand that Net_Sieve 1.3 ist PHP4 but what I asked was why you
don't rewrite it for PHP5 and release it as new version (1.4 or maybe
2.0).
Other PEAR packages (PHP_Debug, PEAR/Exception.php) have "public static"
methods as well so there seems no rule that enforces PEAR packages to
stay compatible with a PHP version that was released more than 7 years
ago and has long been officially deprecated.
Previous Comments:
------------------------------------------------------------------------
[2011-07-14 10:11:14] yunosh
First of all, this is a problem with PEAR, not Net_Sieve, because the
method *is* static, but not declared as one. And this for a simple
reason: it's PHP 4 code. And so is Net_Sieve.
------------------------------------------------------------------------
[2011-07-13 15:28:15] chammers
But why WontFix? It's barely 1200 lines, including comments. Would it be
so hard to release a version 1.4 that requires PHP5 and adheres to its
stricter standards.
When developing I usually like to have strict standards turned on and
requirering your Net_Sieve.php floods the log with ugly warnings.
------------------------------------------------------------------------
[2011-07-13 11:02:44] yunosh
-Status: Open
+Status: Wont fix
Net_Sieve is not E_STRICT safe.
------------------------------------------------------------------------
[2011-07-13 11:00:14] wegg42g234zh32
Description:
------------
Strict notice at /usr/share/php/Net/Sieve.php on line 1004 (Non-static
method PEAR::isError() should not be called statically, assuming $this
from incompatible context)
This error is reported for several line numbers (318, 967, 880, 940,
...)
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18663&edit=1