|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-02-10 16:06 UTC] danger at freebsd dot org
[2011-02-13 04:32 UTC] cataphract@php.net
[2011-02-13 13:12 UTC] danger at freebsd dot org
[2011-02-13 16:35 UTC] cataphract@php.net
-Status: Open
+Status: Feedback
[2011-02-13 16:35 UTC] cataphract@php.net
[2011-02-14 15:32 UTC] danger at FreeBSD dot org
[2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
[2016-08-23 05:35 UTC] asphp at dsgml dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 04:00:01 2025 UTC |
Description: ------------ mail() returns false when sendmail_path contains a -f flag and we use additional_params with -f specified again. This is a regression from 5.3.3 (which I have updated from and discovered the Roundcube stopped being able to send emails). Additional information: hosting# php -v PHP 5.3.5 with Suhosin-Patch (cli) (built: Feb 8 2011 16:36:25) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with XCache v1.3.1, Copyright (c) 2005-2010, by mOo Test script: --------------- --TEST-- mail(): returns false when sendmail_path contains a -f flag and we use additional_params with one --INI-- sendmail_path=/usr/sbin/sendmail -t -i -f foo@bar.tld --FILE-- <?php var_dump(mail('bar@foo.tld', 'subject', 'message', 'From: foo@bar.tld', '-ffoo@baz.tld')); ?> --EXPECT-- bool(true) Expected result: ---------------- bool(true) Actual result: -------------- hosting# cat mail-test.out More than one "from" person bool(false)