Bug #17801 Updated: mail() with more than 4012 byte crashes
| From: | gabinunde at yahoo dot de | Date: | Tue, 18 Jun 2002 10:38:09 +0000 |
| Subject: | Bug #17801 Updated: mail() with more than 4012 byte crashes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-11114@lists.php.net to get a copy of this message | ||
ID: 17801
Updated by: gabinunde@yahoo.de
Reported By: gabinunde@yahoo.de
Status: Feedback
Bug Type: Mail related
Operating System: W98, NT
PHP Version: 4.2.1
New Comment:
First I tryed "php4-win32-STABLE-latest.zip" with PHP 4.2.2 as CGI and
as module, but the same error accured with mail().
After I tryed "php4-win32-latest.zip" with PHP 4.3.0:
-Apache works with this version only as module, not as CGI.
-Now I can send mails with $header>4012 Byte, but the plain text of the
message-body as well as the attachment are received as they were
headers!!!!!!!! In the source-text of the received mail message and
attachment are shown in bold like all the headers (From, To,
Content-Type ect...). So one can't read the message and the attachment
has 0 byte.
I could send an example of such a mail.
Gabi
Previous Comments:
------------------------------------------------------------------------
[2002-06-17 11:06:04] edink@php.net
Several mail() problems have been fixed in the latest CVS version of
PHP. Could you please try the latest non stable snapshot from
http://snaps.php.net/win32/
------------------------------------------------------------------------
[2002-06-17 10:52:38] gabinunde@yahoo.de
On W98 and NT (Apache 2.0.35, PHP(as CGI) 4.1.1 and 4.2.1 tested) there
is a problem sending multipart-mails:
mail($to,$subject,"",$header);
$header has been created like at
http://phpwizard.net/resources/phpMisc/scripts/pretty/mail.php3
Until the lenght of $header is <= 4012 byte everything is working fine.
Obove that limit PHP.EXE crashes (drwtsn32.log) and Apache reports:
"Premature end of script headers...".
Thanks Gabi
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17801&edit=1