Doc #76610 [Opn->Ver]: [FR] Fatal error in an example (missing "," in a array)

From: Date: Wed, 11 Jul 2018 14:47:28 +0000
Subject: Doc #76610 [Opn->Ver]: [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-15876@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: cmb@php.net Reported by: arthur at tipaldi dot fr -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 Type: Documentation Problem -Package: Documentation problem +Package: Translation problem Operating System: Any PHP Version: 7.3Git-2018-07-11 (Git) Block user comment: N Private report: N 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

« previous php.doc.bugs (#15876) next »