Doc #76610 [Ver->Csd]: [FR] Fatal error in an example (missing "," in a array)
| From: | carusogabriel@php.net | Date: | Sat, 14 Jul 2018 14:32:10 +0000 |
| Subject: | Doc #76610 [Ver->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-15883@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: carusogabriel@php.net
Reported by: arthur at tipaldi dot fr
Summary: [FR] Fatal error in an example (missing "," in a
array)
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: Translation problem
Operating System: Any
PHP Version: 7.3Git-2018-07-11 (Git)
-Assigned To:
+Assigned To: carusogabriel
Block user comment: N
Private report: N
New Comment:
Fixed. Thanks for reporting it.
Previous Comments:
------------------------------------------------------------------------
[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