php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44924 [PATCH] sendmail path detected at configure time is ignored.
Submitted: 2008-05-06 06:48 UTC Modified: 2008-08-26 23:26 UTC
From: fegert at belwue dot de Assigned: pajoye (profile)
Status: Closed Package: Mail related
PHP Version: 5.2.6 OS: Solaris
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fegert at belwue dot de
New email:
PHP Version: OS:

 

 [2008-05-06 06:48 UTC] 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?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-07 15:21 UTC] 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-08-26 23:26 UTC] jani@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 22:01:26 2024 UTC