Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.11

Bug #5400 Do not return function reference
Submitted: 2005-09-14 14:39 UTC
From: pear at borki dot ch Assigned: cipri
Status: Closed Package: Mail_Mime
PHP Version: 4.3.11 OS: FreeBSD 5.4-p6
Roadmaps: 1.4.0    
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
2007-05-05 15:09 UTC
Bug Type:
From: pear at borki dot ch
New email:
PHP Version: Package Version: OS:


 [2005-09-14 14:39 UTC] pear at borki dot ch
Description: ------------ NOTICE Only variable references should be returned by reference inc/pear/Mail/mime.php:320 Fix: First put the new Object in a variable, then return... maybe there are similar problems elsewhere.. Test script: --------------- diff -r1.2 mime.php 320c320,321 < return new Mail_mimePart($text, $params); --- > $mimePart = new Mail_mimePart($text, $params); > return $mimePart; Expected result: ---------------- function without NOTICE Actual result: -------------- NOTICE with the error message


 [2007-05-05 15:09 UTC] cipri (Cipriano Groenendal)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at Fixed in 1.4.0