Doc #76610 [NEW]: Fatal error in an example (missing "," in a array)

From: Date: Wed, 11 Jul 2018 14:40:52 +0000
Subject: Doc #76610 [NEW]: Fatal error in an example (missing "," in a array)
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15875@lists.php.net to get a copy of this message
From: arthur at tipaldi dot fr Operating system: Any PHP version: 7.3Git-2018-07-11 (Git) Package: Documentation problem Bug Type: Documentation Problem Bug description:Fatal error in an example (missing "," in a array) 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 bug report at https://bugs.php.net/bug.php?id=76610&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76610&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76610&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76610&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76610&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76610&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76610&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76610&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76610&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76610&r=support Expected behavior: https://bugs.php.net/fix.php?id=76610&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76610&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76610&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76610&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76610&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76610&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76610&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76610&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76610&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76610&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76610&r=mysqlcfg

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