ID:               44924
 Updated by:       [EMAIL PROTECTED]
 Reported By:      fegert at belwue dot de
-Status:           Open
+Status:           Assigned
-Bug Type:         *Mail Related
+Bug Type:         Mail related
 Operating System: Solaris
 PHP Version:      5.2.6
-Assigned To:      
+Assigned To:      pajoye
 New Comment:

----------------------------
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..


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to