php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #22584 pass mail()'s extra_args as an array?
Submitted: 2003-03-07 04:33 UTC Modified: 2013-10-28 07:53 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: screwdriver at lxnt dot info Assigned: krakjoe (profile)
Status: Closed Package: *General Issues
PHP Version: 4.3.1 OS: any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: screwdriver at lxnt dot info
New email:
PHP Version: OS:

 

 [2003-03-07 04:33 UTC] screwdriver at lxnt dot info
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().


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-28 07:53 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: krakjoe
 [2013-10-28 07:53 UTC] krakjoe@php.net
That is what the documentation says it will do.

I don't understand what it being requested or why, as the request is so old, closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 11 20:01:27 2024 UTC