php.net |  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
Description:
------------
---
From manual page: http://www.php.net/function.mail
---

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

Test script:
---------------
<?php
$to      = 'nobody@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = array(
    'From' => 'webmaster@example.com',
    'Reply-To' => 'webmaster@example.com'
    'X-Mailer' => 'PHP/' . phpversion()
);

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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-07-11 14:47 UTC] cmb@php.net
-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] carusogabriel@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: carusogabriel
 [2018-07-14 14:32 UTC] carusogabriel@php.net
Fixed. Thanks for reporting it.
 [2018-07-16 13:47 UTC] arthur at tipaldi dot fr
Hi, 

It isn't fixed when I go back to either http://php.net/manual/fr/function.mail.php or http://www.php.net/function.mail with the automatic language selection to French. 

Maybe a cache on your servers?
 [2018-07-16 13:54 UTC] requinix@php.net
> 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] carusogabriel@php.net
Automatic comment from SVN on behalf of carusogabriel
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=345325
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] nikic@php.net
Automatic comment on behalf of carusogabriel
Revision: http://git.php.net/?p=doc/fr.git;a=commit;h=f503a5821653d802a2855659b38ea8cd981d96d8
Log: Fix bug #76610
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 03 23:01:27 2024 UTC