php.net |  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 http://www.php.net/manual/en/function.mail.php 
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 http://www.php.net/manual/en/function.mail.php 
about using Return-path: dos'nt work!

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

mail("nobody@aol.com", "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.
      
 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-15 09:08 UTC] hholzgra@php.net
5th parameter was introduced after 4.0.4 release, documentation should mention that
 [2001-02-15 13:13 UTC] derick@php.net
Fixed in CVS
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 05:01:27 2019 UTC