Edit report at https://bugs.php.net/bug.php?id=25862&edit=1

 ID:                 25862
 Comment by:         zhirkow at gmail dot com
 Reported by:        thouraud at bondy dot ird dot fr
 Summary:            mail() always return FALSE
 Status:             Wont fix
 Type:               Bug
 Package:            Mail related
 Operating System:   solaris 9
 PHP Version:        4.3.3
 Block user comment: N
 Private report:     N

 New Comment:

still having this problem with php 5.2 on centos 5.6 x86
mail() return false with no reason or explaination of what happens. also 
nothing in logs...


Previous Comments:
------------------------------------------------------------------------
[2004-05-06 04:07:03] roguedragon at merging dot org

PHP version 4.3.6 / Apache 1.3.29 on FreeBSD
Having the same problem listed here, but I recompiled php & apache without the 
--enable-sigchild flag, restarted everything, and mail() is still returning 
false even though the mail is going through correctly. Any suggestions?

------------------------------------------------------------------------
[2003-10-14 17:53:37] [email protected]

When PHP is compiled with --enable-sigchild the return codes of executed 
programs are lost. Once of those programs is sendmail, since PHP cannot fetch 
the return code it assumes the program had failed. Hence the always FALSE 
return value of mail(). Normally mail() returns false only when communication 
between PHP & sendmail fails.

------------------------------------------------------------------------
[2003-10-14 13:05:24] thouraud at bondy dot ird dot fr

Without the --enable-sigchild configure option, it seems that mail() alwayes 
return TRUE.

Even if the mail server returns an "unknown error" with a false email, or an 
"No recipients specified" with a blank first field of mail().

Is that normal ? When mail() returns FALSE ?

------------------------------------------------------------------------
[2003-10-14 11:13:37] [email protected]

Okay, try removing the --enable-sigchild configure option
and reconfigure/compile PHP. (don't forget to delete config.cache before 
reconfiguring!)


------------------------------------------------------------------------
[2003-10-14 10:44:48] thouraud at bondy dot ird dot fr

the configure line is :

./configure  --with-apxs=/opt/apache/bin/apxs --prefix=/opt/apache 
--with-config-file-path=/opt/apache/conf --with-mysql --disable-debug 
--enable-trans-sid --with-oci8=/opt/oracle/product/9201 --enable-dbase 
--enable-safe-mode --disable-magic-quotes --enable-sigchild --enable-ldap 
--with-zlib=/opt/sfwplus --enable-mbstring --enable-mbregex 
--enable-zend-multibyte --enable-bcmath --enable-calendar --enable-exif 
--with-jpeg-dir=/opt/sfwplus --with-png-dir=/opt/sfwplus 
--with-tiff-dir=/opt/sfwplus --with-gd --with-iconv --with-pgsql=/opt/postgres

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=25862


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=25862&edit=1

Reply via email to