Edit report at http://pear.php.net/bugs/bug.php?id=18254&edit=1
ID: 18254
Comment by: danack
Reported By: Daniel dot Ackroyd at dialogue dot net
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:
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())
Previous Comments:
------------------------------------------------------------------------
[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 [...]
------------------------------------------------------------------------