php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73365 Replace commas with dots in example snippet
Submitted: 2016-10-21 13:41 UTC Modified: 2016-10-21 13:46 UTC
From: mail at michaelwesthof dot nl Assigned:
Status: Not a bug Package: *General Issues
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mail at michaelwesthof dot nl
New email:
PHP Version: OS:

 

 [2016-10-21 13:41 UTC] mail at michaelwesthof dot nl
Description:
------------
---
From manual page: http://www.php.net/internals2.opcodes.catch
---

echo 'Caught exception: ',  $e->getMessage(), "\n";

Should read for it to work:

echo 'Caught exception: ' .  $e->getMessage() . "\n";


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-10-21 13:43 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2016-10-21 13:43 UTC] requinix@php.net
Commas are allowed. http://php.net/echo
 [2016-10-21 13:46 UTC] mail at michaelwesthof dot nl
This is no bug in the docs.
This works with echo, but not with print!
This bug report may be closed.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Oct 09 01:00:01 2026 UTC