#42946 [Opn->Csd]: sendmail default to empty when not found at configure time
ID: 42946
Updated by: jani@php.net
Reported By: xuefer at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Mail related
Operating System: linux
PHP Version: 5.2.4
Assigned To: johannes
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2007-10-15 10:28:11] jani@php.net
Assigned to Johannes who changed this.
------------------------------------------------------------------------
[2007-10-12 12:17:28] xuefer at gmail dot com
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 this bug report at http://bugs.php.net/?id=42946&edit=1
Thread (4 messages)