Skip to content

Commit 8e8dc40

Browse files
authored
Fix #78757: Enhance sendmail log notice (#14955)
The sendmail is set to default value of /usr/sbin/sendmail if not found on the host system. This was already properly fixed via GH-5548 (commit 5174318). This change now also outputs "no" when searching for sendmail and a minimalistic notice that default send_mail INI directive has been set to /usr/sbin/sendmail. Fixes and closes: https://bugs.php.net/78757
1 parent 47d3ce4 commit 8e8dc40

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

build/php.m4

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,10 +1579,11 @@ dnl PHP_PROG_SENDMAIL
15791579
dnl
15801580
dnl Search for the sendmail binary.
15811581
dnl
1582-
AC_DEFUN([PHP_PROG_SENDMAIL], [
1583-
PHP_ALT_PATH=/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib
1584-
AC_PATH_PROG(PROG_SENDMAIL, sendmail, /usr/sbin/sendmail, $PATH:$PHP_ALT_PATH)
1585-
])
1582+
AC_DEFUN([PHP_PROG_SENDMAIL],
1583+
[PHP_ALT_PATH=/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib
1584+
AC_PATH_PROG([PROG_SENDMAIL], [sendmail], [], [$PATH:$PHP_ALT_PATH])
1585+
AS_VAR_IF([PROG_SENDMAIL],, [PROG_SENDMAIL=/usr/sbin/sendmail
1586+
AC_MSG_NOTICE([default sendmail_path INI directive set to $PROG_SENDMAIL])])])
15861587

15871588
dnl
15881589
dnl PHP_PROG_AWK

0 commit comments

Comments
 (0)