From: rtboon at xs4all dot nl
Operating system: Fedora 2
PHP version: 5.0.1
PHP Bug Type: Mail related
Bug description: Can't set full name on -f 5th mail parameter
Description:
------------
I'm not sure whether this is a sendmail or a PHP bug, but since PHP 5 my
scripts fail where I use a 5'th argument like
"-f George Bush <[EMAIL PROTECTED]>" (pardon my politics :-) ) where
"oil.com" would be my domain.
I get errors now that [EMAIL PROTECTED] is not a valid username.
In PHP 4.2.3 this used to work.
When I use "-f [EMAIL PROTECTED]", everything is ok.
I do not use safe mode, nor any settings in php.ini.
Reproduce code:
---------------
mail( "[EMAIL PROTECTED]", "Vote me!", "said it...",
"From: George Bush <[EMAIL PROTECTED]>\r\n",
"-f George Bush <[EMAIL PROTECTED]>" );
Expected result:
----------------
A mail with in the header:
Return-path: George Bush <[EMAIL PROTECTED]>
Actual result:
--------------
In my sendmail log:
[EMAIL PROTECTED] is an unknown user.
--
Edit bug report at http://bugs.php.net/?id=30237&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30237&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30237&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30237&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30237&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30237&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30237&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30237&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30237&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30237&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30237&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30237&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30237&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30237&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30237&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30237&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30237&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30237&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30237&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30237&r=mysqlcfg