Req #77075 [Opn->Wfx]: Add <br> to the exception reporting in HTML
| From: | cmb@php.net | Date: | Tue, 06 Apr 2021 15:12:39 +0000 |
| Subject: | Req #77075 [Opn->Wfx]: Add <br> to the exception reporting in HTML | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-233228@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77075&edit=1
ID: 77075
Updated by: cmb@php.net
Reported by: david at grudl dot com
Summary: Add <br> to the exception reporting in HTML
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: Output Control
PHP Version: 7.3.0RC4
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
I don't think addressing this particular case makes sense; other
debug output (var_dump() etc.) has the same issue. You can use
Xdebug to "fix" that.
If you feel strongly that this should be implemented, please
pursue the RFC process[1].
[1] <https://wiki.php.net/rfc/howto>
Previous Comments:
------------------------------------------------------------------------
[2018-10-27 19:16:27] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77075&edit=1