Bug #14855 Updated: Access Violation when using "Cc:" in mail()

From: Date: Sat, 25 May 2002 00:26:11 +0000
Subject: Bug #14855 Updated: Access Violation when using "Cc:" in mail()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-8470@lists.php.net to get a copy of this message
ID: 14855 Updated by: derick@php.net Reported By: bernd.sluka@kmz.de -Status: Open +Status: Closed Bug Type: Mail related Operating System: Windows NT 4.0 (SP6) PHP Version: 4.0.6 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2002-01-04 14:26:53] bernd.sluka@kmz.de One last addition: Using "CC:" instead of "Cc:" works and does NOT crash. Strange! ------------------------------------------------------------------------ [2002-01-04 14:17:04] bernd.sluka@kmz.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 13:36:23] bernd.sluka@kmz.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!"; }; ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=14855&edit=1

« previous php.bugs (#8470) next »