Edit report at http://pear.php.net/bugs/bug.php?id=18254&edit=1
ID: 18254
Comment by: djeyewater
Reported By: showerheadsuk at hotmail dot com
Summary: Strict Standards errors
Status: Open
Type: Bug
Package: Mail
Operating System: Windows XP SP 3
Package Version: 1.2.0
PHP Version: 5.2.11
New Comment:
If you look at the Mail class there are a few instances of it calling
methods statically when the methods are not declared as static. I think
the problem probably boils down to the class being written for PHP4, or
at least being written to be PHP4 compatible. It would be nice to have a
PHP5 fork of the code.
I also have many other error messages caused by the Mail class, such as
Non-static method PEAR::isError() should not be called statically,
assuming $this from incompatible context in Net/SMTP.php on line 421
Previous Comments:
------------------------------------------------------------------------
[2011-08-18 07:20:11] danack
I believe only the warning message "Non-static method Mail::factory()
should not be called statically."
This should be fixed by changing line 74 of Mail.php from
function &factory($driver, $params = array())
to
static function &factory($driver, $params = array())
------------------------------------------------------------------------
[2011-02-08 15:31:40] rudy_bruneau
Description:
------------
With Php 5.2.11 i've a problem with is_a() method and when execute PEAR
Mail script to send an email many Strict Standards errors displayed.
- Strict Standards : Non-static method PEAR::isError() should not be
called statically.
- Strict Standards : Non-static method Mail::factory() should not be
called statically.
Actual result:
--------------
Strict Standards: Non-static method Mail::factory() should not be called
statically, assuming $this from incompatible context in [...]
Strict Standards: is_a(): Deprecated. Please use the instanceof operator
in /usr/share/php/PEAR.php on line 252
Strict Standards: Non-static method PEAR::isError() should not be called
statically, assuming $this from incompatible context in [...]
------------------------------------------------------------------------