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

ID: 12071
Comment by: jshpro2
Reported By: josh dot ribakoff at gmail dot com
Summary: Error message: Assigning the return value of new by
reference is deprecated
Status: Wont fix
Type: Bug
Package: Mail
Operating System: arch linux
Package Version: 1.1.14
PHP Version: 5.2.4
Assigned To: chagenbu
New Comment:

Me too. I installed pear to install phing & phpunit. I am now
uninstalling your non-maintained framework for it's failure to keep up
with good standards :-)

Previous Comments:

[2010-01-08 02:44:31] hubbitus

In any case call nonstatic methods in static context is bad idea - it
will be prohibited in the future versions of PHP.


[2009-12-30 16:48:49] magnamel

Hi hubbitus,
thank your for your reply about my question
I have tried to call back the parseAddressList method in static
I know that this is not correct but with a E_ALL & ~E_NOTICE error
level in php.ini the error is disappeared again.
The code in Mail.php is now the follow:

//$parser =& new Mail_RFC822();
$addresses = Mail_RFC822::parseAddressList($value, 'localhost',

Is this PHP4 compatible?



[2009-12-27 13:48:04] hubbitus

magnamel - there no problem removing this ampersand in PHP5 but it
breaks backward capability with php4. I can say must be removed for
PHP5. In easy way it may be wrapped to oark in both.


[2009-12-27 09:54:06] magnamel

I am very interested to PEAR project but i am a very new user of php
For try, I have removed the ampersand (&) in front off operator 'new'
at line 154 of Mail.php file. The error is disappeared
What kind of problem missing & can do?

Package Mail version 1.1.14
Php version 5.3.0
OS version Mac OS X 10.6 with XAMPP 1.7.2a installed



[2009-08-27 11:55:16] shadow_man

I wait too.

But 1/3 packages was make for PHP5 and lots of package have make since
3 yers ago...


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 @
postedFeb 2, '10 at 4:53a
activeFeb 2, '10 at 4:53a

1 user in discussion

Jshpro2: 1 post



site design / logo © 2022 Grokbase