From:
Operating system: FreeBSD, should not depend on OS
PHP version: 5.3.5
Package: Mail related
Bug Type: Bug
Bug description:mail() regression with sendmail_path containing -f
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 [email protected]
--FILE--
<?php
var_dump(mail('[email protected]', 'subject', 'message', 'From: [email protected]',
'[email protected]'));
?>
--EXPECT--
bool(true)
Expected result:
----------------
bool(true)
Actual result:
--------------
hosting# cat mail-test.out
More than one "from" person
bool(false)
--
Edit bug report at http://bugs.php.net/bug.php?id=53984&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=53984&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=53984&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=53984&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=53984&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=53984&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=53984&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=53984&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=53984&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=53984&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=53984&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=53984&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=53984&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=53984&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=53984&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53984&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53984&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=53984&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=53984&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=53984&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=53984&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=53984&r=mysqlcfg