#27200 [Opn]: Mail gives strange result

2004-02-10 Thread php at liefdeis dot com
 ID:   27200
 User updated by:  php at liefdeis dot com
 Reported By:  php at liefdeis dot com
 Status:   Open
 Bug Type: Mail related
 Operating System: Linux 2.4.18-3
 PHP Version:  4.3.4
 New Comment:

Btw, does not occour when you put in a \r\n every 100 chars or
something. Only with a long list of non-breaking chars.


Previous Comments:


[2004-02-10 02:56:34] php at liefdeis dot com

Description:

When mailing a long text without any space or such, mailing on Linux
gives an unexpected exclamation mark after every 1000 chars or so. This
behavoir does not occour on Windows.

Reproduce code:
---
";
  for ($i=0;$i<1;$i++) {
$longtext .= "a";
  }

  $testmail = "PHP Mail Bug Test\r\n"
  ."\r\n"
  ."--_=_NextPart_PHP_SPECIAL_000\r\n"
  ."Content-Type: text/plain\r\n"
  ."\r\nPHP Mail Bug Test\r\n\r\n"
  ."--_=_NextPart_PHP_SPECIAL_000\r\n"
  ."Content-Type: text/html;\r\n"
  ."name=\"PHP Mail Bug Test.html\"\r\n"
  ."Content-Disposition: attachment;\r\n"
  ."filename=\"PHP Mail Bug Test.html\"\r\n\r\n"
  .$longtext
  ."\r\n\r\n--_=_NextPart_PHP_SPECIAL_000--\r\n";

  mail($mail,$mailkop,$testmail,
   "From: $mail\r\n"
  ."Reply-To: $mail\r\n"
  ."Return-Path: $mail\r\n"
  ."X-Mailer: PHP Mail Bug Test\r\n"
  ."MIME-Version: 1.0\r\n"
  ."Content-Type: multipart/mixed;\r\n"
  ."boundary=\"_=_NextPart_PHP_SPECIAL_000\"\r\n");

?>

Expected result:

A long line with 1 a's

Actual result:
--
After 1000 chars, he gives a ! (exclamation mark) without any given
reason.





-- 
Edit this bug report at http://bugs.php.net/?id=27200&edit=1


#27200 [NEW]: Mail gives strange result

2004-02-10 Thread php at liefdeis dot com
From: php at liefdeis dot com
Operating system: Linux 2.4.18-3
PHP version:  4.3.4
PHP Bug Type: Mail related
Bug description:  Mail gives strange result

Description:

When mailing a long text without any space or such, mailing on Linux gives
an unexpected exclamation mark after every 1000 chars or so. This behavoir
does not occour on Windows.

Reproduce code:
---
";
  for ($i=0;$i<1;$i++) {
$longtext .= "a";
  }

  $testmail = "PHP Mail Bug Test\r\n"
  ."\r\n"
  ."--_=_NextPart_PHP_SPECIAL_000\r\n"
  ."Content-Type: text/plain\r\n"
  ."\r\nPHP Mail Bug Test\r\n\r\n"
  ."--_=_NextPart_PHP_SPECIAL_000\r\n"
  ."Content-Type: text/html;\r\n"
  ."name=\"PHP Mail Bug Test.html\"\r\n"
  ."Content-Disposition: attachment;\r\n"
  ."filename=\"PHP Mail Bug Test.html\"\r\n\r\n"
  .$longtext
  ."\r\n\r\n--_=_NextPart_PHP_SPECIAL_000--\r\n";

  mail($mail,$mailkop,$testmail,
   "From: $mail\r\n"
  ."Reply-To: $mail\r\n"
  ."Return-Path: $mail\r\n"
  ."X-Mailer: PHP Mail Bug Test\r\n"
  ."MIME-Version: 1.0\r\n"
  ."Content-Type: multipart/mixed;\r\n"
  ."boundary=\"_=_NextPart_PHP_SPECIAL_000\"\r\n");

?>

Expected result:

A long line with 1 a's

Actual result:
--
After 1000 chars, he gives a ! (exclamation mark) without any given
reason.

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