Skip to content

Commit 89b4a46

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Fix default sendmail path when not found during build
2 parents 32b3235 + d050d74 commit 89b4a46

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

build/php.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1734,7 +1734,7 @@ dnl Search for the sendmail binary.
17341734
dnl
17351735
AC_DEFUN([PHP_PROG_SENDMAIL], [
17361736
PHP_ALT_PATH=/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib
1737-
AC_PATH_PROG(PROG_SENDMAIL, sendmail,[], $PATH:$PHP_ALT_PATH)
1737+
AC_PATH_PROG(PROG_SENDMAIL, sendmail, /usr/sbin/sendmail, $PATH:$PHP_ALT_PATH)
17381738
PHP_SUBST(PROG_SENDMAIL)
17391739
])
17401740

main/main.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,10 +688,8 @@ PHP_INI_MH(OnChangeBrowscap);
688688
/* Windows use the internal mail */
689689
#if defined(PHP_WIN32)
690690
# define DEFAULT_SENDMAIL_PATH NULL
691-
#elif defined(PHP_PROG_SENDMAIL)
692-
# define DEFAULT_SENDMAIL_PATH PHP_PROG_SENDMAIL " -t -i "
693691
#else
694-
# define DEFAULT_SENDMAIL_PATH "/usr/sbin/sendmail -t -i"
692+
# define DEFAULT_SENDMAIL_PATH PHP_PROG_SENDMAIL " -t -i"
695693
#endif
696694

697695
/* {{{ PHP_INI

0 commit comments

Comments
 (0)