|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-02-10 03:00 UTC] php at liefdeis dot com
[2004-02-10 04:24 UTC] moriyoshi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 03:00:01 2025 UTC |
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: --------------- <? $mail = "<enter_Email_Here>"; for ($i=0;$i<10000;$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 10000 a's Actual result: -------------- After 1000 chars, he gives a ! (exclamation mark) without any given reason.