|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-12-13 22:01 UTC] jholmes at tvmedia dot ca
Description:
------------
The default value for configuration option 'sendmail_path' is not sane.
In previous versions of php, the default value was '/usr/sbin/sendmail -t -i ' which should work on most *nix systems
Since I've upgraded to 5.2.5, the default value is '-t -i ', which isn't going to work on anything.
PHP was compiled from source on this system.
Reproduce code:
---------------
From the command line (ditto for SAPI module):
linux:~# echo "<?php var_dump(ini_get('sendmail_path')); ?>" | php -n
Expected result:
----------------
string(25) "/usr/sbin/sendmail -t -i "
Actual result:
--------------
string(7) " -t -i "
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 02:00:01 2025 UTC |
That must have been the problem. I checked my Makefile and PROG_SENDMAIL had no value. After checking to make sure sendmail was in my path, I ran ./configure again and now PROG_SENDMAIL is set correctly. Still, if configure can't find sendmail it shouldn't set sendmail_path to just the switches (" -t -i "). I think this might have something to do with bug #42505.