#44924 [Asn->Csd]: [PATCH] sendmail path detected at configure time is ignored.
| From: | jani@php.net | Date: | Tue, 26 Aug 2008 23:26:35 +0000 |
| Subject: | #44924 [Asn->Csd]: [PATCH] sendmail path detected at configure time is ignored. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-128454@lists.php.net to get a copy of this message | ||
ID: 44924
Updated by: jani@php.net
Reported By: fegert at belwue dot de
-Status: Assigned
+Status: Closed
Bug Type: Mail related
Operating System: Solaris
PHP Version: 5.2.6
Assigned To: pajoye
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-05-07 15:21:06] jani@php.net
----------------------------
revision 1.640.2.23.2.62
date: 2008/03/05 20:58:08; author: pajoye; state: Exp; lines: +3 -4
- #42505, new sendmail default path breaks on Novell (Guenter Knauf)
----------------------------
revision 1.640.2.23.2.43
date: 2007/07/11 17:36:56; author: johannes; state: Exp; lines: +2
-2
- MFH: Always enable mail() function
=============================================================================
Last commit done by Pierre removed the line, dunno if that was
intentional or not. Pierre: Please reply to my mails..
------------------------------------------------------------------------
[2008-05-06 06:48:40] fegert at belwue dot de
Description:
------------
Starting with php-5.2.6 the PHP_PROG_SENDMAIL detected at configure
time isn't picked up any more as a default value for
DEFAULT_SENDMAIL_PATH. This breaks the mail() function on systems where
DEFAULT_SENDMAIL_PATH != /usr/sbin/sendmail (e.g. Solaris with
/usr/lib/sendmail) and sendmail_path isn't explicitly set in php.ini.
The following patch restores the behavior known up to php-5.2.5:
--- main/main.c.orig Mon May 5 16:44:56 2008
+++ main/main.c Mon May 5 16:47:06 2008
@@ -355,6 +355,8 @@
/* Windows and Netware use the internal mail */
#if defined(PHP_WIN32) || defined(NETWARE)
# 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"
#endif
Is there a specific reason why the two lines have been removed?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44924&edit=1