|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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!";
};
?>
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 09:00:01 2025 UTC |
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"