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 » Web Services » SOAP » Bug #10030

Base.php: Defining Constant MAIL_MIMEPART_CRLF leads to problems with Mail_mime

Details

Submitted2007-02-05 18:49 UTC
Frommaske at chiquadrat dot de
StatusDuplicate
PackageSOAP
PHP Version5.2.0
OSDebian Sarge
Roadmaps(Not assigned)

Comments

[2007-02-05 18:49 UTC] maske at chiquadrat dot de

Description:
------------
This definition in Base.php (Line 56-59):

if (class_exists('Mail_mimePart')) {
$GLOBALS['SOAP_options']['Mime'] = 1;
define('MAIL_MIMEPART_CRLF', "\r\n");
}

leads to problems if you use Mail_mime and don't want to have 'MAIL_MIMEPART_CRLF', "\r\n" for sending emails.

Reason is: Mail_mime uses this constant for encoding mails. If the constant is already defined you have no chance to re-define it to "\n". But my system needs "\n" for encoding mails. So mails will be corrupted if I include Base.php in scripts.