#44924 [NEW]: sendmail path detected at configure time is ignored.
| From: | fegert at belwue dot de | Date: | Tue, 06 May 2008 06:48:40 +0000 |
| Subject: | #44924 [NEW]: sendmail path detected at configure time is ignored. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-124742@lists.php.net to get a copy of this message | ||
From: fegert at belwue dot de
Operating system: Solaris
PHP version: 5.2.6
PHP Bug Type: *Mail Related
Bug description: sendmail path detected at configure time is ignored.
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 bug report at http://bugs.php.net/?id=44924&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44924&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44924&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44924&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44924&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=44924&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44924&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44924&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44924&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44924&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44924&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=44924&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=44924&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44924&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44924&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44924&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44924&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44924&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44924&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44924&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44924&r=mysqlcfg