php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21901 /Mail/mime.php Undefined property: text, source line 408
Submitted: 2003-01-27 09:25 UTC Modified: 2003-02-14 10:38 UTC
From: andres at surf dot ee Assigned:
Status: Closed Package: PEAR related
PHP Version: 4.3.0 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: andres at surf dot ee
New email:
PHP Version: OS:

 

 [2003-01-27 09:25 UTC] andres at surf dot ee
My source code:
$mimetext = new Mail_mime($crlf);
$mimetext->setTXTBody($textbody);

error from log file (clean 4.3.0 install):
PHP Notice:  Undefined property:  text in /usr/local/lib/php/Mail/mime.php on line 408
Causing my text based emails to be empty.


Source reads (line 408):
$message =& $this->_addTextPart($null, $this->text);

Fixed it to
$message =& $this->_addTextPart($null, $this->_txtbody);


After fix, everything is back to old behaviour.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-14 10:38 UTC] mj@php.net
This bug has been fixed in CVS.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Oct 28 21:03:36 2021 UTC