From: brlcad at mac dot com Operating system: FreeBSD 5.2.1 PHP version: 5.1.2 PHP Bug Type: Apache2 related Bug description: mod_php5 + apache2 + mail() = hung process
Description: ------------ Using a default install of mod_php5 on FreeBSD, installed via an up-to-date ports, web pages calling mail() hang indefintely. This ends up hanging the associated apache process until it is manually killed. I can send mail fine from mail clients on the host, from mod_perl, by telnetting to port 25, just apparently not from mod_php5. I've tested using the default php.ini mail settings as well as setting sendmail_path explicitly with different debug options (e.g. /usr/local/sbin/sendmail -t -i -v -X /tmp/ sendmail.log). Sendmail does log that a connection is established and the e-mail is written to the log, but it never closes the connection and only aborts when apache is killed. This bug seems very familiar with php bug 22947 yet I'm not on Windows so perhaps just coincidence. Reproduce code: --------------- <?php $to = "[EMAIL PROTECTED]"; $subject = "Hi!"; $body = "Hello?"; echo("<p>sending mail</p>"); if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } ?> -- Edit bug report at http://bugs.php.net/?id=37120&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37120&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37120&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37120&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37120&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37120&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37120&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37120&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37120&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37120&r=support Expected behavior: http://bugs.php.net/fix.php?id=37120&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37120&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37120&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37120&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37120&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37120&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37120&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37120&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37120&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37120&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37120&r=mysqlcfg