Bug #3401: mail() crashes when not passing additional header

From: Date: Fri, 04 Feb 2000 09:45:16 +0000
Subject: Bug #3401: mail() crashes when not passing additional header
Groups: php.dev 
Request: Send a blank email to php-dev+get-15186@lists.php.net to get a copy of this message
From: japj@oce.nl Operating system: Windows 2000 PHP version: 3.0.14 PHP Bug Type: Reproduceable crash Bug description: mail() crashes when not passing additional header the following script crashes php3 when trying to send a mail: <? mail("japj@oce.nl","Test Mail","Some text"); ?> building a debug build of PHP3 shows that SendText in "win32\sendmail.c" uses the headers variable in a strstr action. Unfortunately when not specifying the optional headers parameter in mail() the headers variable is NULL and this crashes PHP3. WORKAROUND at the moment is to do the following: <? mail("japj@oce.nl","Test Mail","Some text",""); ?>

« previous php.dev (#15186) next »