Home » Web Services » SOAP » Bug #10030
Base.php: Defining Constant MAIL_MIMEPART_CRLF leads to problems with Mail_mime
Details
| Submitted | 2007-02-05 18:49 UTC |
|---|---|
| From | maske at chiquadrat dot de |
| Status | Duplicate |
| Package | SOAP |
| PHP Version | 5.2.0 |
| OS | Debian 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.