From: screwdriver at lxnt dot info Operating system: any PHP version: 4.3.1 PHP Bug Type: Feature/Change Request Bug description: pass mail()'s extra_args as an array?
Passing mail()'s fifth argument as a string, at least on FreeBSD poses significant problems because it effectively passes the whole string as single argument to the sendmail. I suggest making mail() accept its fifth argument both as a string (old behavior) and as an array, thus working around this complication. Each value of the array will then be passed through php_escape_shell_cmd(). -- Edit bug report at http://bugs.php.net/?id=22584&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22584&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22584&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22584&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22584&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22584&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22584&r=support Expected behavior: http://bugs.php.net/fix.php?id=22584&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22584&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22584&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22584&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22584&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22584&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22584&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22584&r=gnused