]> granicus.if.org Git - php/commitdiff
Fix default sendmail path when not found during build
authorIndrek Ardel <indrek@ardel.eu>
Sat, 9 May 2020 00:08:14 +0000 (03:08 +0300)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 11 May 2020 08:45:23 +0000 (10:45 +0200)
Closes GH-5548.

acinclude.m4
main/main.c

index bf4c88d3a3f8259d5407a607ad83ac3519ef6aee..a12fb862f76041d46cf09bd9e55cd57b93efe806 100644 (file)
@@ -2084,7 +2084,7 @@ dnl Search for the sendmail binary
 dnl
 AC_DEFUN([PHP_PROG_SENDMAIL], [
   PHP_ALT_PATH=/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib
-  AC_PATH_PROG(PROG_SENDMAIL, sendmail,[], $PATH:$PHP_ALT_PATH)
+  AC_PATH_PROG(PROG_SENDMAIL, sendmail, /usr/sbin/sendmail, $PATH:$PHP_ALT_PATH)
   PHP_SUBST(PROG_SENDMAIL)
 ])
 
index 30629117d91a65f7622df3176f05c261ee34623a..f20a786743453749d84e0120a0af9a2abb6fa3e9 100644 (file)
@@ -697,10 +697,8 @@ PHP_INI_MH(OnChangeBrowscap);
  /* Windows use the internal mail */
 #if defined(PHP_WIN32)
 # define DEFAULT_SENDMAIL_PATH NULL
-#elif defined(PHP_PROG_SENDMAIL)
-# define DEFAULT_SENDMAIL_PATH PHP_PROG_SENDMAIL " -t -i "
 #else
-# define DEFAULT_SENDMAIL_PATH "/usr/sbin/sendmail -t -i"
+# define DEFAULT_SENDMAIL_PATH PHP_PROG_SENDMAIL " -t -i"
 #endif
 
 /* {{{ PHP_INI