note 76144 added to function.implode
| From: | DennisDay at osu1 dot php dot net | Date: | Mon, 02 Jul 2007 21:39:10 +0000 |
| Subject: | note 76144 added to function.implode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-128163@lists.php.net to get a copy of this message | ||
I have resolved an issue in SquirrelMail. The problem seemed to be with the implode command.
Apparently you do not want to use this function with a large array as SquirellMail attempted to do.
This only was an issue with some of the email attachments larger that 2MB.
In /src/move_messages.php, replace the line line that says
$body = implode('', $body_a);
With :
// Dennis Day's custom code
$body = "";
foreach($body_a as $body_a_key=>$body_a_value){
$body .= $body_a_value;
}
// End Dennis Day's custom code
// Original Bad Code
// $body = implode('', $body_a);
----
Server IP: 208.69.120.35
Probable Submitter: 207.192.204.1
----
Manual Page -- http://www.php.net/manual/en/function.implode.php
Edit -- https://master.php.net/note/edit/76144
Del: integrated -- https://master.php.net/note/delete/76144/integrated
Del: useless -- https://master.php.net/note/delete/76144/useless
Del: bad code -- https://master.php.net/note/delete/76144/bad+code
Del: spam -- https://master.php.net/note/delete/76144/spam
Del: non-english -- https://master.php.net/note/delete/76144/non-english
Del: in docs -- https://master.php.net/note/delete/76144/in+docs
Del: other reasons-- https://master.php.net/note/delete/76144
Reject -- https://master.php.net/note/reject/76144
Search -- https://master.php.net/manage/user-notes.php