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

From: Date: Fri, 04 Jan 2002 18:36:23 +0000
Subject: Bug #14855: Access Violation when using "Cc:" in mail()
Groups: php.dev 
Request: Send a blank email to php-dev+get-75887@lists.php.net to get a copy of this message
From: bernd.sluka@kmz.de Operating system: Windows NT 4.0 (SP6) PHP version: 4.0.6 PHP Bug Type: Reproducible crash Bug description: Access Violation when using "Cc:" in mail() 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 bug report at: http://bugs.php.net/?id=14855&edit=1

« previous php.dev (#75887) next »