#43591 [Opn->Bgs]: strange value for sendmail_path if configure can't find sendmail

From: Date: Tue, 25 Dec 2007 00:35:46 +0000
Subject: #43591 [Opn->Bgs]: strange value for sendmail_path if configure can't find sendmail
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-120848@lists.php.net to get a copy of this message
ID: 43591 Updated by: johannes@php.net Reported By: jholmes at tvmedia dot ca -Status: Open +Status: Bogus Bug Type: Mail related Operating System: Linux 2.6.18 PHP Version: 5.2.5 New Comment: In PHP 4.2.0, the 'register_globals' setting default changed to 'off'. See http://www.php.net/release_4_2_0.php for more info. We are sorry about the inconvenience, but this change was a necessary part of our efforts to make PHP scripting more secure and portable. No real issue, just a problem with the bad default which was reported before. Previous Comments: ------------------------------------------------------------------------ [2007-12-22 16:14:54] jholmes at tvmedia dot ca 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. ------------------------------------------------------------------------ [2007-12-22 11:10:58] johannes@php.net Was the sendmail binary somewhere in the path during your configure run and set as executable for the user running configure? ------------------------------------------------------------------------ [2007-12-13 22:01:25] 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 " ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43591&edit=1

« previous php.bugs (#120848) next »