|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76610 [FR] Fatal error in an example (missing "," in a array)
Submitted: 2018-07-11 14:40 UTC Modified: 2018-07-16 13:54 UTC
From: arthur at tipaldi dot fr Assigned: carusogabriel (profile)
Status: Closed Package: Translation problem
PHP Version: 7.3Git-2018-07-11 (Git) OS: Any
Private report: No CVE-ID: None
 [2018-07-11 14:40 UTC] arthur at tipaldi dot fr
From manual page:

In Exemple #3 of the FRENCH version, the array "$headers" is missing a "," after "''" resulting in a fatal error. 

Test script:
$to      = '';
$subject = 'the subject';
$message = 'hello';
$headers = array(
    'From' => '',
    'Reply-To' => ''
    'X-Mailer' => 'PHP/' . phpversion()

mail($to, $subject, $message, $headers);


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-07-11 14:47 UTC]
-Summary: Fatal error in an example (missing "," in a array) +Summary: [FR] Fatal error in an example (missing "," in a array) -Status: Open +Status: Verified -Package: Documentation problem +Package: Translation problem
 [2018-07-14 14:32 UTC]
-Status: Verified +Status: Closed -Assigned To: +Assigned To: carusogabriel
 [2018-07-14 14:32 UTC]
Fixed. Thanks for reporting it.
 [2018-07-16 13:47 UTC] arthur at tipaldi dot fr

It isn't fixed when I go back to either or with the automatic language selection to French. 

Maybe a cache on your servers?
 [2018-07-16 13:54 UTC]
> Maybe a cache on your servers?
Yes. The manual is generated from sources on a schedule. carusogabriel's fix will appear when the manual is rebuilt.
 [2018-07-16 15:10 UTC]
Automatic comment from SVN on behalf of carusogabriel
Log: Fix bug #76610

There was a missing comma in the second element of the array in Example #3.
 [2020-12-30 12:48 UTC]
Automatic comment on behalf of carusogabriel
Log: Fix bug #76610
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 28 11:01:32 2024 UTC