php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15505 mail() crashes
Submitted: 2002-02-11 10:19 UTC Modified: 2002-06-02 18:14 UTC
Votes:4
Avg. Score:5.0 ± 0.0
Reproduced:4 of 4 (100.0%)
Same Version:4 (100.0%)
Same OS:4 (100.0%)
From: ntdev at wischrop-net dot de Assigned:
Status: Closed Package: Mail related
PHP Version: 4.1.1 OS: Windows 2000 Pro SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ntdev at wischrop-net dot de
New email:
PHP Version: OS:

 

 [2002-02-11 10:19 UTC] ntdev at wischrop-net dot de
I'm using IIS on W2K Pro SP2 with the CGI php.exe version 4.1.1

I'm trying to send a file with 21 lines off 22 "a test " (base64 encoded).

this is from my mail script:

[...]

 echo "TO: ".$this->to."<br>\r\n"."SUBJECT:".$this->subject."<br>\r\nCONTENT:".$mime;
 mail($this->to, $this->subject,  "", $mime); //access violation here

[...]

if $mime is larger then 1k I get a access violation in php.exe on address 0x100a09ed (the address differs on different sizes of $mime).

this the output from the echo statement (with mail() comment out):

TO: test@myserver
SUBJECT:testmail
CONTENT:MIME-Version: 1.0 Content-Type: multipart/mixed; boundary = b508b5c33aa94af28a1b883193cc8a3c9 This is a MIME encoded message. --b508b5c33aa94af28a1b883193cc8a3c9 Content-Type: text/plain Content-Transfer-Encoding: base64 dm9ybmFtZTpzZGZnCgpuYWNobmFtZTpzZGZnCgpvcnQ6CgphbnNjaHJpZnQ6CgphbHRlcjozMgoK --b508b5c33aa94af28a1b883193cc8a3c9 Content-Type: text/plain; name = "test1.txt" Content-Transfer-Encoding: base64 YSB0ZXN0IGEgdGVzdCBhIHRlc3QgYSB0ZXN0IGEgdGVzdCBhIHRlc3QgYSB0ZXN0IGEgdGVzdCBh IHRlc3QgYSB0ZXN0IGE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CBhIHRlc3QgYSB0ZXN0IGEgdGVzdCBhIHRlc3QgYSB0ZXN0IGEgdGVzdCBhIHRlc3Qg YSB0ZXN0IGEgdGVzdCBhIHRlc3QNCmEgdGVzdCBhIHRlc3QgYSB0ZXN0IGEgdGVzdCBhIHRlc3Qg YSB0ZXN0IGEgdGVzdCBhIHRlc3QgYSB0ZXN0IGEgdGVzdCBhIHRlc3QgYSB0ZXN0IGEgdGVzdCBh IHRlc3QgYSB0ZXN0IGEgdGVzdCBhIHRlc3QgYSB0ZXN0IGEgdGVzdCBhIHRlc3QgYSB0ZXN0IGEg dGVzdA== --b508b5c33aa94af28a1b883193cc8a3c9--

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-12 08:07 UTC] bigpub at ifrance dot com
I'm using same class to send mail with attached files. With no files (message body surely lower than 1k) it works, joining large MIME encoded content crashes PHP with "Memory can not be written" and another "Memory can not be read" system errors, then of course a 500 Internal Server Error is displayed in browser.
 [2002-06-02 18:14 UTC] mfischer@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 [2021-04-06 10:40 UTC] git@php.net
Automatic comment on behalf of roojs
Revision: https://github.com/php/pecl-tools-svn/commit/c74c7d3dffe974507ab63bfe915f506a17d83c5a
Log: fix #15505 - warning on errors
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Jun 15 08:01:24 2021 UTC