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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: serg at sputnikmedia dot net
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 04:01:27 2024 UTC