php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42946 sendmail default to empty when not found at configure time
Submitted: 2007-10-12 12:17 UTC Modified: 2008-08-26 23:19 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: xuefer at gmail dot com Assigned: johannes (profile)
Status: Closed Package: Mail related
PHP Version: 5.2.4 OS: linux
Private report: No CVE-ID: None
 [2007-10-12 12:17 UTC] 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"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-15 10:28 UTC] jani@php.net
Assigned to Johannes who changed this.
 [2008-08-26 23:19 UTC] jani@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 15:01:30 2024 UTC