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

ID: 12071
Updated by: hm2k@php.net
Reported By: dninja at gmail dot com
Summary: Error message: Assigning the return value of new by
reference is deprecated
-Status: Wont fix
+Status: Closed
Type: Bug
Package: Mail
Operating System: arch linux
Package Version: 1.1.14
PHP Version: 5.2.4
Assigned To: chagenbu
Roadmap Versions:
New Comment:

-Status: Wont fix
+Status: Closed
Appears to have been fixed as per bug #16969...

Previous Comments:

[2010-02-02 04:50:01] jshpro2

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 :-)


[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 manner.
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', false);

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



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, '11 at 3:44a
activeFeb 2, '11 at 3:44a

1 user in discussion

Hm2k: 1 post



site design / logo © 2022 Grokbase