#42946 [NEW]: sendmail default to empty when not found at configure time
From: xuefer at gmail dot com
Operating system: linux
PHP version: 5.2.4
PHP Bug Type: Mail related
Bug description: sendmail default to empty when not found at configure time
Description:
------------
when sendmail is not found at configure time, PHP_PROG_SENDMAIL is defined
as "" in main/php_config.h, so DEFAULT_SENDMAIL_PATH is defined as "" " -t
-i ". this lead to no error message and mail() just return false.
Reproduce code:
---------------
$ rm /usr/sbin/sendmail
$ ./configure
$ make
(now go install /usr/sbin/sendmail with any packages like rpm)
(and you have /usr/sbin/sendmail after php is built)
$ ./sapi/cli/php testmail.php
Expected result:
----------------
php should use "/usr/sbin/sendmail -t -i" to send email
Actual result:
--------------
php try to execute " -t -i"
--
Edit bug report at http://bugs.php.net/?id=42946&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42946&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42946&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42946&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42946&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=42946&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42946&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42946&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42946&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42946&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42946&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=42946&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=42946&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42946&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42946&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42946&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42946&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42946&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42946&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42946&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42946&r=mysqlcfg
Thread (4 messages)
- xuefer at gmail dot com