php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14855 Access Violation when using "Cc:" in mail()
Submitted: 2002-01-04 13:36 UTC Modified: 2002-05-24 20:26 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: bernd dot sluka at kmz dot de Assigned:
Status: Closed Package: Mail related
PHP Version: 4.0.6 OS: Windows NT 4.0 (SP6)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bernd dot sluka at kmz dot de
New email:
PHP Version: OS:

 

 [2002-01-04 13:36 UTC] bernd dot sluka at kmz dot de
Configuration: PHP 4.0.6 on a Windows NT System with IIS 3

Calling mail() with an "Cc:"-headerline in the "additional_headers" (4th) argument
results in an crash of the php module and the webserver. If the "Cc:"-string is
commented out, everything works fine.

Error: "PHP has encountered an Access Violation at 0177B474"

Script:

<?php
setlocale ("LC_TIME", "");

$recp = "bernd.sluka@kmz.de";
$subject = "Test";
$body = "Test\n";

$EMail="bernd.sluka@kmz.de";

if ( mail($recp . $cc, $subject, $body , "Cc: test@kmz.de\n" ) )
{
  print "Mail ok!";
} else {
  print "No mail today!";
};
?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-04 14:17 UTC] bernd dot sluka at kmz dot de
Some comments and one correction:

1. The Server is an IIS, Version _4_

2. I've now installed PHP 4.1.1 and the problem remains.

3. I'm using the SAPI-Module. When using php.exe the error
    changes to an allocation error (and the webserver does not
    crash):
    "FATAL: emalloc(): Unable to allocate -11967191 bytes"
 [2002-01-04 14:26 UTC] bernd dot sluka at kmz dot de
One last addition:

Using "CC:" instead of "Cc:" works and does NOT crash.
Strange!

 [2002-05-24 20:26 UTC] derick@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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 07:01:28 2024 UTC