PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Mail » Mail_Mime » Bug #4696

addAttachment crash

Details

Submitted2005-06-28 13:27 UTC
Fromadax2000 at tlen dot pl
Assignedcipri
StatusClosed
PackageMail_Mime
PHP Version4.3.11
OSlinux
Roadmaps1.4.0, 1.4.0a1

Comments

[2005-06-28 13:27 UTC] adax2000 at tlen dot pl

Description:
------------
wenn magic_quotes_runtime are enabled attachment will be not properly encoded to base64, due to this email will have an atachment, but destroyed
i described this problem already in php bugs #33494
so look there for futhere information

the lines below should remove this problem

Expected result:
----------------
mime.php line 295

if ($old=get_magic_quotes_runtime())
{ set_magic_qutoes_runtime(0); }

$cont = fread($fd, filesize($file_name));

if ($old) { set_magic_qutoes_runtime($old); }

Actual result:
--------------
mime.php line 295

$cont = fread($fd, filesize($file_name));