#42946 [Opn->Asn]: sendmail default to empty when not found at configure time

From: Date: Mon, 15 Oct 2007 10:28:13 +0000
Subject: #42946 [Opn->Asn]: sendmail default to empty when not found at configure time
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118543@lists.php.net to get a copy of this message
ID: 42946 Updated by: jani@php.net Reported By: xuefer at gmail dot com -Status: Open +Status: Assigned Bug Type: Mail related Operating System: linux PHP Version: 5.2.4 -Assigned To: +Assigned To: johannes New Comment: Assigned to Johannes who changed this. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#118543) next »