Home » Mail » Mail_Mime » Bug #6663
Notice about reference passing
Details
| Submitted | 2006-02-02 07:41 UTC |
|---|---|
| From | yonman at nsa dot co dot il |
| Assigned | cipri |
| Status | Closed |
| Package | Mail_Mime |
| PHP Version | 5.1.1 |
| OS | Windows xp |
| Roadmaps | 1.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 />