#42505 [NEW]: new sendmail default breaks NetWare platform
From: gk at gknw dot de
Operating system: NetWare
PHP version: 5.2.4
PHP Bug Type: Mail related
Bug description: new sendmail default breaks NetWare platform
Description:
------------
The recent commit to ./main/main.c by johannes (Revision 1.640.2.23.2.43
and 1.640.2.23.2.50) breaks NetWare internal mail functionality; IMO the
preprocessor ifdefs are totally bogus;
I think this patch is a more accurate way to express it, and restores
previous default for NetWare platform (+ adds a comment):
--- main.c.orig Fri Aug 03 03:30:22 2007
+++ main.c Fri Aug 31 23:46:21 2007
@@ -333,10 +333,10 @@
# define PHP_SAFE_MODE_EXEC_DIR ""
#endif
-#if defined(PHP_PROG_SENDMAIL) && !defined(NETWARE)
-# define DEFAULT_SENDMAIL_PATH PHP_PROG_SENDMAIL " -t -i "
-#elif defined(PHP_WIN32)
+#if defined(PHP_WIN32) || defined(NETWARE) /* Win32 and NetWare use
internal mail */
# 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
please fix that soon! Thanks!
Reproduce code:
---------------
<?php
phpinfo()
?>
Expected result:
----------------
sendmail_path = no value
Actual result:
--------------
sendmail_path = sendmail -t -i
--
Edit bug report at http://bugs.php.net/?id=42505&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42505&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42505&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42505&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42505&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=42505&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42505&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42505&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42505&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42505&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42505&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=42505&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=42505&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42505&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42505&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42505&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42505&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42505&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42505&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42505&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42505&r=mysqlcfg
Thread (7 messages)
- gk at gknw dot de