ZF-5394: Zend_Mime_Message::createFromMessage() - invalid creation of Zend_Mime_Part

Issue Type: Bug Created: 2009-01-02T06:54:58.000+0000 Last Updated: 2012-02-10T09:35:32.000+0000 Status: Resolved Fix version(s): - 1.7.3 (19/Jan/09)

Reporter: Jan Pieper (jpieper) Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_Mime

Related issues: Attachments: - ZF-5394.diff


I tried to get an instance of Zend_Mime_Message via its createFromMessage() method but I am getting an E_WARNING (see. below). I tried to find out what it is causing it and found out, that an array instead of a string will be put as parameter to Zend_Mime_Part's constructor. You have to use $part['body'] instead of $part as parameter for Zend_Mime_Part::__construct().

{quote}Notice: Array to string conversion in /usr/share/php/Zend/Mime.php on line 131{quote}


Posted by Jan Pieper (jpieper) on 2009-01-02T06:55:59.000+0000

Attached diff to fix this bug.

Posted by Jan Pieper (jpieper) on 2009-01-02T06:58:15.000+0000

Added missing notice.

Posted by old of Satoru Yoshida ( on 2009-01-02T23:46:03.000+0000

Solved in SVN r13497

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.