|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #9279 Declarated fifth param apsent in mail.c
Submitted: 2001-02-15 08:55 UTC Modified: 2001-02-15 13:13 UTC
From: serg at sputnikmedia dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.4pl1 OS: Linux
Private report: No CVE-ID: None
 [2001-02-15 08:55 UTC] serg at sputnikmedia dot net
Declarated fifth param ( )at 
is apsent in mail.c from php-4.0.4pl1.tar.gz

bool mail (string to, string subject, string message [, string additional_headers [, string additional_parameters]])

string additional_parameters - don't have any code in mail.c
And this example from 
about using Return-path: dos'nt work!

Example 3. Sending mail with extra headers and setting an additional command line parameter.

mail("", "the subject", $message,
     "From: webmaster@$SERVER_NAME", "-fwebmaster@$SERVERNAME");

such code give us error 
Warning: Wrong parameter count for mail() 
bcos, as i say, in mail.c don't present any code about 5'th param :(

Sorry for my bad english.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-15 09:08 UTC]
5th parameter was introduced after 4.0.4 release, documentation should mention that
 [2001-02-15 13:13 UTC]
Fixed in CVS
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Jul 14 17:01:53 2020 UTC