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

ID: 17276
Updated by: alan@akbkhome.com
Reported By: php at fostam dot franken dot de
Summary: Throws deprecated error in PHP 5.3
-Status: Open
+Status: Closed
Type: Bug
Package: Mail_mimeDecode
Package Version: 1.5.1
PHP Version: 5.3.0
-Assigned To:
+Assigned To: alan_k
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: alan_k
This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on
pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

Thanks
Alan


Previous Comments:
------------------------------------------------------------------------

[2010-03-29 10:03:32] roller246

Description:
------------
The current stable version throws a deprecated error in PHP 5.3 as it
assigns the result of "new" by reference:

...
$obj = &new Mail_mimeDecode($body);
...

Only workaround is removing E_DEPRECATED from error reporting, which is
actually not a good solution.

Being somewhat "official", it's an odd thing that a PEAR package throws
errors in the current stable of PHP, and should be considered a bug.


Test script:
---------------
error_reporting(E_ALL & ~E_NOTICE); // actually obsolete, as this is
the default setting
require_once 'Mail/mimeDecode.php';

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMar 30, '10 at 2:05a
activeMar 30, '10 at 2:05a
posts1
users1
websitepear.php.net

1 user in discussion

Alan: 1 post

People

Translate

site design / logo © 2022 Grokbase