|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14944 Access Violation with Cc header
Submitted: 2002-01-09 04:24 UTC Modified: 2002-06-02 13:50 UTC
Avg. Score:4.6 ± 0.8
Reproduced:5 of 5 (100.0%)
Same Version:4 (80.0%)
Same OS:3 (60.0%)
From: bart at intulogic dot nl Assigned:
Status: Closed Package: Mail related
PHP Version: 4.1.0 OS: Windows 2000 Professional
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.
Block user comment
Status: Assign to:
Bug Type:
From: bart at intulogic dot nl
New email:
PHP Version: OS:


 [2002-01-09 04:24 UTC] bart at intulogic dot nl
While parsing the script displayed below, this error appears: 'PHP has encountered an Access Violation at 01130A6E'.
This only happens when using the Cc header, in this script.
The IIS server it is running on will not respond after the PHP error. Rebooting is the only way to restart the service.

PHP script causing error:

mail("", "My Subject", "Line 1\nLine 2\nLine 3",
		 "From: webmaster@$SERVER_NAME\r\n"
		."Reply-To: webmaster@$SERVER_NAME\r\n"
		."X-Mailer: PHP/" . phpversion());

/* recipients */
$to  = "Mary <>" . ", " ; //note the comma
$to .= "Kelly <>";

/* subject */
$subject = "Birthday Reminders for August";

/* message */
$message = '
 <title>Birthday Reminders for August</title>
<p>Here are the birthdays upcoming in August!</p>

/* To send HTML mail, you can set the Content-type header. */
$headers  = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";

/* additional headers */
$headers .= "From: Intranet <webmaster@$SERVER_NAME>\n";
$headers .= "Reply-To: Bart <>\n";

$headers .= "Cc:\n";

/* and now mail it */
mail("", $subject, $message, $headers);



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-02 13:50 UTC]
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at In case this was a documentation 
problem, the fix will show up soon at
In case this was a website problem, the change will show
up on the site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.

You can try a snapshot from
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Jun 24 09:01:23 2021 UTC