From:             ap at d-dt dot de
Operating system: Windown XP
PHP version:      4.3.3
PHP Bug Type:     Mail related
Bug description:  symptom: mail() stripped chars from base64 data block

Description:
------------
As of PHP 4.3.3 (Win) my mail class sends e-mails, which single stripped
characters. The same code worked with 4.3.2 (Win)

Used mailserver is Sendmail 8.12.6 on separate FreeBSD 5.1

Sending the message head and -body to stdout or apache produces a correct
Output, only the incoming results differs from the expected.

Reproduce code:
---------------
mail ($addressee, 'Subj: '.phpversion(),
chunk_split(base64_encode(file_get_contents('Images/numbers.zip'))),
$mime->head());

where $mime->head() are the MIME Headers. Two variants tested: using CRLF
and singe LF ("\r\n", "\n")


Expected result:
----------------
Incoming mail by 4.3.3 (incorrect, missing char in line 2: sequence is
.."Z8B5".., should by .."Z8HB5".. )...

6AZ0QAQoLzBw/GPw5JDx2LDgYDOHsFbMjAIWDj5xjZgHDEksh1tkNWwSNjg0
HmflkQthKJz4oIObx2ZVzMuLB9smqdh5vDixaVkTq6iTwZ8B5b59wu6aMgo
Jqa2cMuVTOI4mOjky82lu8HnRKMqMx+H9ZIYyalPmZeyal7hSWR0cmeXZWta
...
Incoming mail by 4.3.2

6AZ0QAQoLzBw/GPw5JDx2LDgYDOHsFbMjAIWDj5xjZgHDEksh1tkNWwSNjg0
HmflkQthKJz4oIObx2ZVzMuLB9smqdh5vDixaVkTq6iTwZ8HB5b59wu6aMgo
Jqa2cMuVTOI4mOjky82lu8HnRKMqMx+H9ZIYyalPmZeyal7hSWR0cmeXZWta
..


-- 
Edit bug report at http://bugs.php.net/?id=25333&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25333&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25333&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25333&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25333&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25333&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25333&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25333&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25333&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25333&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25333&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25333&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25333&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25333&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25333&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25333&r=gnused

Reply via email to