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

Bug #333 Only variables or references can be returned by reference
Submitted: 2003-12-01 09:43 UTC
From: jfl at eksperten dot dk Assigned:
Status: Bogus Package: Mail_Mime
PHP Version: 5.0.0b2 (beta2) OS: Fedora Core 1
Roadmaps: (Not assigned)    
Comments Add Comment Add patch

Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem : 49 - 32 = ?

 [2003-12-01 09:43 UTC] jfl at eksperten dot dk
Description: ------------ Fatal error: Only variables or references can be returned by reference in /usr/local/lib/php/Mail/mime.php on line 306


 [2003-12-01 09:49 UTC] jfl at eksperten dot dk
<?php require('Mail/mime.php'); $mime = new Mail_mime("\n"); $mime->setHTMLBody('test'); $body = $mime->get(); ?>
 [2004-02-16 09:12 UTC] lsmith
this was a PHP5 bug which should be fixed in the recent PHP5 beta3 or 4 (dont remember which one exactly)
 [2004-12-08 18:24 UTC] sean
Thank you for taking the time to report a problem with the package. Unfortunately you are not using a current version of the package -- the problem might already be fixed. Please download a new version from If you are able to reproduce the bug with one of the latest versions, please change the package version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PEAR. Fixed in PHP 5.