Bug #51967 [Opn->Fbk]: iconv_mime_encode() eats all memory
| From: | aharvey@php.net | Date: | Wed, 02 Jun 2010 03:46:11 +0000 |
| Subject: | Bug #51967 [Opn->Fbk]: iconv_mime_encode() eats all memory | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-151001@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51967&edit=1
ID: 51967
Updated by: aharvey@php.net
Reported by: alex dot aulbach at mayflower dot de
Summary: iconv_mime_encode() eats all memory
-Status: Open
+Status: Feedback
Type: Bug
Package: *Mail Related
Operating System: linux
PHP Version: 5.2.13
New Comment:
Please try using this snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
It's not exactly the same bug, but given that the fix for bug #48289
(which was only committed about a month ago, hence isn't yet in any
releases) tinkered with the same function, could you please try a
snapshot and see if it fixes the problem?
Previous Comments:
------------------------------------------------------------------------
[2010-06-01 18:39:17] alex dot aulbach at mayflower dot de
Description:
------------
We got this error:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried
to allocate 2194780439 bytes) in
After examining the reason, I found this test to reproduce it.
Because we don't have 5.2.13 in production, this is only tested with
5.2.12, but as far as I know, there was no change here, since that, so
it should also be reproduce able with 5.2.13.
Test script:
---------------
<?php
$string = 'ÐоÑоÑкое замÑкание в
Ñепи
даÑÑика емкоÑÑного
водонагÑеваÑелÑ';
error_log(phpversion());
error_log ("1");
error_log (iconv_mime_encode( 'Subject', $string, array(
'scheme' => 'Q',
'input-charset' => 'utf-8',
'output-charset' => 'utf-8',
'line-length' => 74,
'linke-break-chars' => "\r\n")
));
error_log("2");
Actual result:
--------------
The script prints out only "1" and breaks down with the fatal error.
Take care! It eats all memory if no limits are here!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51967&edit=1