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

ID: 9950
Comment by: amcnaughton
Reported By: amcnaughton at squiz dot net
Summary: PHP Strict errors even with E_STRICT Disabled
Status: Bogus
Type: Bug
Package: Mail
Operating System: Centos
PHP Version: 5.2.0
New Comment:

There seems to be some confusion here. This bug report is not about the
issues which the warnings are about. It is about those warnings being
generated despite error_reporting() being set to a level where those
errors should not be reported.

Previous Comments:

[2009-11-13 14:33:02] qtx

In the line 161 of the file Mail.php, the is a call

$parser = new Mail_RFC822();
$addresses = $parser->parseAddressList($value, 'localhost', false);

It is correct. But in the line 228

$addresses = Mail_RFC822::parseAddressList($value, 'localhost', false);

It produces warnings. I corrected it like the first example, now it


[2009-11-13 14:24:38] cweiske
But it looks like that the developer of the Mail package does not
understand what are static methods.
You don't understand PHP4 compatibility.


[2009-11-13 14:15:29] qtx

Well, it is really pity.

But it looks like that the developer of the Mail package does not
understand what are static methods.

He calls many times in his code


although the method isError is not static.

He declares the method parseAddressList of the class Mail_RFC822 as
normal but tries to call it statically in Mail.php.

The developer of the Mail should correct this in the Mail package.

Neither PHP nore PEAR are responsible for this bug.


[2009-01-26 14:43:52] tonyv

So, here is a two-year old bug that seems neither resolved by PHP nor
PEAR teams, with each blaming the other. Not really interested in the
politics, but I'd like to get my scripts working under PHP5.

I'm calling Mail::factory(), in accordance with the documentation, and
this works fine under PHP4. Now, under PHP5, I'm getting the dreaded
"Non-static Method....", despite the comment in the docs that it
*should* be called statically.

I've tried setting up a call $m=new Mail(); $smtp=$m->factory( 'smtp' );
That fails with "Assigning the return value of new by reference is
at line 210 in /usr/share/php/Mail/smtp.php"

Any messing with error_reporting(0) appears to make no difference as
observed in this bug report.
Please, someone, how am I supposed to set this up?


[2007-01-26 19:53:28] chagenbu at php dot net

There's no way this is Mail's fault.


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
postedJun 29, '10 at 12:47p
activeJun 29, '10 at 12:47p

1 user in discussion

Amcnaughton: 1 post



site design / logo © 2021 Grokbase