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

Bug #17553 Error 8192 in Mail.php
Submitted: 2010-07-03 02:34 UTC
From: coyote6_graphx Assigned: alec
Status: Closed Package: Mail (version Unknown)
PHP Version: 5.3.0 OS: Mac OS X 10.5
Roadmaps: (Not assigned)    
Subscription  


 [2010-07-03 02:34 UTC] coyote6_graphx (Tanner Naeher)
Description: ------------ Don't know if this should go with the Bug #17388 or not because it is in a different script. Please let me know if there is a fix. Test script: --------------- include('Mail.php'); include('Mail/mime.php'); $hdrs = array(); $hdrs['From'] = 'tanner@coyote6.com'; $hdrs['Subject'] = 'test email'; $mime = new Mail_mime(); $mime->setTXTBody('test'); $mime->setHTMLBody('<b>test</b>'); $body = $mime->get(); $headers = $mime->headers($hdrs); $mail = new Mail; $mail =& $mail->factory('mail'); if ($mail->send('tanner@coyote6.com', $headers, $body)) { $message = '<span class="success">Your email was sent successfully sent.</span><br />'; } Expected result: ---------------- No errors on just the include. Actual result: -------------- ERROR_NUMBER: 8192 TEXT: Assigning the return value of new by reference is deprecated FILE: /PEAR/Mail.php LINE: 156 TIME OCCURRED: July 02, 2010, 16:14:02 BACKTRACE: include() # line 1, file: test.php Also many errors throughout in strict mode calls to non-static functions in a non static way.

Comments

 [2011-01-08 15:03 UTC] alec (Aleksander Machniak)
-Status: Open +Status: Closed -Assigned To: +Assigned To: alec
It's fixed in current version.