From: roguedragon at merging dot org
Operating system: FreeBSD 4.9-RELEASE
PHP version: 4.3.6
PHP Bug Type: Mail related
Bug description: mail() always returns false, even on success
Description:
------------
I've seen multiple bugs were reported about this in the past, but all were
using older versions of PHP, and most were said to be fixed or had patches
that were entered into the CVS for the next version. But, here I am with
the problem.
On the server listed above (FreeBSD 4.9-RELEASE/Apache 1.3.29/PHP 4.3.6),
--enable-sigchild was used in compilation. (There was a patch posted about
On a simple mail script, the mail() function always returns false, even
though the mail is actually going through. (Script posted below)
After reading through the bug reports, I recompiled without the
--enable-sigchild flag and rebooted everything. phpinfo() no longer states
that it was compiled with --enable-sigchild, but the problem still
exists.
I tested the same script on another server that was compiled with
--enable-sigchild, and had the same results. mail() returned false even
though it sent the email out. (FreeBSD 4.8-RELEASE/Apache 1.3.27/PHP
4.3.2)
On a server that was NOT compiled with --enable-sigchild (FreeBSD
4.9-RELEASE/Apache 1.3.29/PHP 4.3.4), mail() returned the correct status.
Any suggestions?
Reproduce code:
---------------
<?php
if( mail( '[EMAIL PROTECTED]', 'test subject', 'just a test message', "From:
'[EMAIL PROTECTED]' ) )
echo "Success";
else
echo "Failed.";
?>
--
Edit bug report at http://bugs.php.net/?id=28294&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28294&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28294&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28294&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28294&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28294&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28294&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28294&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28294&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28294&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28294&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28294&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28294&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28294&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28294&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28294&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28294&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28294&r=float