PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Mail » Mail_Mime » Bug #6663

Notice about reference passing

Details

Submitted2006-02-02 07:41 UTC
Fromyonman at nsa dot co dot il
Assignedcipri
StatusClosed
PackageMail_Mime
PHP Version5.1.1
OSWindows xp
Roadmaps1.4.0

Comments

[2006-02-02 07:41 UTC] yonman at nsa dot co dot il

Description:
------------
When using the Mail mime class normaly, two notices are displayed about incorrect reference passing from methods within the Mail mime class.

Test script:
---------------
$message = new Mail_mime( SYSTEM_MAIL_MIME_CRLF );

$message->_build_params[ 'html_charset' ]= 'UTF-8';
$message->_build_params[ 'text_charset' ]= 'UTF-8';
$message->_build_params[ 'head_charset' ]= 'UTF-8';

$message->setTXTBody( $strText );
$message->setHTMLBody( $strHTML );
$body = $message->get( );
$extraheaders = array( "From" => 'someone@somewhere.foo' , "Subject"=> 'subject' );
$headers = $message->headers( $extraheaders );
$mail = Mail::factory( "mail" );
$mixedResponse = $mail->send( $mixedTo, $headers, $body);

Expected result:
----------------
Mail should be sent silently and normally.

Actual result:
--------------
<b>Notice</b>: Only variable references should be returned by reference in <b>E:\Program Files\xampp\php\pear\Mail\mime.php</b> on line <b>375</b><br />
<b>Notice</b>: Only variable references should be returned by reference in <b>E:\Program Files\xampp\php\pear\Mail\mime.php</b> on line <b>593</b><br />