php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #77075 Add <br> to the exception reporting in HTML
Submitted: 2018-10-27 19:16 UTC Modified: -
From: david at grudl dot com Assigned:
Status: Open Package: Output Control
PHP Version: 7.3.0RC4 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: david at grudl dot com
New email:
PHP Version: OS:

 

 [2018-10-27 19:16 UTC] david at grudl dot com
Description:
------------
When an undefined exception with a callstack is printed in browser, it would be handy to use nl2br() for output to make the callstack more readable.



Expected result:
----------------
Fatal error: Uncaught Exception: The my exception in test.php:36
Stack trace:
#0 test.php(30): DemoClass::third(Array)
#1 test.php(24): DemoClass->second(true, false)
#2 test.php(44): DemoClass->first(10, 'any string')
#3 test.php(52): demo(10, 'any string')
#4 {main} thrown in test.php on line 36

Actual result:
--------------
Current output in HTML:
Fatal error: Uncaught Exception: The my exception in test.php:36 Stack trace: #0 test.php(30): DemoClass::third(Array) #1 test.php(24): DemoClass->second(true, false) #2 test.php(44): DemoClass->first(10, 'any string') #3 test.php(52): demo(10, 'any string') #4 {main} thrown in test.php on line 36

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Wed Dec 19 03:01:26 2018 UTC