Re: [RFC] [Discussion] Error backtraces v2
| From: | Eric Norris | Date: | Thu, 19 Dec 2024 14:24:37 +0000 |
| Subject: | Re: [RFC] [Discussion] Error backtraces v2 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-126137@lists.php.net to get a copy of this message | ||
> Hi,
>
> Would be reasonable to be able to recover the stack trace of the error as a string, in addition
> to the proposed format? In general, it is the format I use in my error/exception handlers for
> convenience.
>
> A utility function that stringify the trace would be sufficient, as the operation is
> non-trivial.
It is reasonable to provide such a utility function, though I could
imagine some might argue that a function like that is better left to
userland libraries. In any case, I think I would prefer to leave that
for a future RFC in order to keep the scope of this one small.