From: te at mxu dot de
Operating system: Win32 (w2k)
PHP version: 4.3.3
PHP Bug Type: Mail related
Bug description: mail function looses characters
Description:
------------
hello,
i encountered a problem when sending mails longer than approx. 1K. mail
(and imap_mail) seem to loose characters every 1k. this happend after
upgrading to 4.3.3 (from 4.0.?or so)
greetings from munich
thorsten engel
Reproduce code:
---------------
$body = '';
for ($i=0; $i<100; $i++)
{
for ($j=0; $j<76; $j++)
$body .= 'a';
$body.="\r\n";
}
mail ("[EMAIL PROTECTED]","subj",$body);
imap_mail ("[EMAIL PROTECTED]","subjimap",$body);
Expected result:
----------------
aaaaa (76 chars per line)
aaaaa
aaaaa
aaaaa
aaaaa
aaaaa
Actual result:
--------------
aaaaa (some lines only have 75 chars!!)
aaaaa
aaaa
aaaaa
aaaaa
--
Edit bug report at http://bugs.php.net/?id=25556&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25556&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25556&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25556&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25556&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25556&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25556&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25556&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25556&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25556&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25556&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25556&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25556&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25556&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25556&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25556&r=gnused