|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2004-11-13 01:45 UTC] chris at christopher-dean dot co dot uk
  [2004-11-13 01:58 UTC] derick@php.net
  [2004-11-13 10:11 UTC] chris at christopher-dean dot co dot uk
  [2004-12-07 00:59 UTC] jorton@php.net
  [2004-12-14 01:00 UTC] php-bugs at lists dot php dot net
  [2005-03-11 11:27 UTC] phil dot brennan at gmail dot com
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 21:00:02 2025 UTC | 
Description: ------------ I am using php 5.0.2 with apache 2.0.52 on freebsd 5.2.1-RELEASE whenever the mail() is invoked in a php script e.g. by clicking submit on a mail form, apache 'crashes' (although it doesn't die completely, maybe it restarts?) and this error of this form is produced in the logs: www kernel: pid 20225 (httpd), uid 80: exited on signal 6 Any ideas what I can do to fix this if it isn't a bug within php itself? Reproduce code: --------------- <? if(empty($_POST['name'])) echo "The name field was empty. Please click back and fill in your name"; else if(empty($_POST['email'])) echo "The email field was empty. Please click back and fill in your email address"; else if(empty($_POST['message'])) echo "You did not enter a message. Please click back and write us a message"; else { $headers = "From: ".$_POST['name']." <".$_POST['email'].">\r\n" ."reply-to:".$_POST['email']."\r\n"; mail("example@emailaddress.com", "Message from the Media website", $_POST['message'], $headers); ?> <p>Thank you for your message, we will be in contact shortly if nessary.</p> Expected result: ---------------- the thank you message appear on the page Actual result: -------------- I get the page cannot be displayed message from internet explorer indicating apache's basically not running, but on refresh the orginal email us submittal form comes up blank as if it has ben loaded up for the first time (which stands to reason if apache's crashed or restarted). FYI: the format of the page is an 'email us' form with the form's action being the same page, then if(isset(Submit)){...} is used execute the mail() when sumbmited.