Doc #76610 [Csd]: [FR] Fatal error in an example (missing "," in a array)
| From: | requinix@php.net | Date: | Mon, 16 Jul 2018 13:54:29 +0000 |
| Subject: | Doc #76610 [Csd]: [FR] Fatal error in an example (missing "," in a array) | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15899@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76610&edit=1
ID: 76610
Updated by: requinix@php.net
Reported by: arthur at tipaldi dot fr
Summary: [FR] Fatal error in an example (missing "," in a
array)
Status: Closed
Type: Documentation Problem
Package: Translation problem
Operating System: Any
PHP Version: 7.3Git-2018-07-11 (Git)
Assigned To: carusogabriel
Block user comment: N
Private report: N
New Comment:
> 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.
Previous Comments:
------------------------------------------------------------------------
[2018-07-16 13:47:57] 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-14 14:32:09] carusogabriel@php.net
Fixed. Thanks for reporting it.
------------------------------------------------------------------------
[2018-07-11 14:40:49] 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);
?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76610&edit=1