ID: 42946 Updated by: [EMAIL PROTECTED] Reported By: xuefer at gmail dot com -Status: Assigned +Status: Open Bug Type: Mail related Operating System: linux PHP Version: 5.2.4 Assigned To: johannes
Previous Comments: ------------------------------------------------------------------------ [2007-10-15 10:28:11] [EMAIL PROTECTED] Assigned to Johannes who changed this. ------------------------------------------------------------------------ [2007-10-12 12:17:28] xuefer at gmail dot com Description: ------------ when sendmail is not found at configure time, PHP_PROG_SENDMAIL is defined as "" in main/php_config.h, so DEFAULT_SENDMAIL_PATH is defined as "" " -t -i ". this lead to no error message and mail() just return false. Reproduce code: --------------- $ rm /usr/sbin/sendmail $ ./configure $ make (now go install /usr/sbin/sendmail with any packages like rpm) (and you have /usr/sbin/sendmail after php is built) $ ./sapi/cli/php testmail.php Expected result: ---------------- php should use "/usr/sbin/sendmail -t -i" to send email Actual result: -------------- php try to execute " -t -i" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42946&edit=1