Re: bring Exception::getTrace/getTraceAsString consistent with debug_backtrace
| From: | Johannes Schlüter | Date: | Tue, 04 Jun 2013 12:55:34 +0000 |
| Subject: | Re: bring Exception::getTrace/getTraceAsString consistent with debug_backtrace | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-67627@lists.php.net to get a copy of this message | ||
On Tue, 2013-06-04 at 14:32 +0200, Ferenc Kovacs wrote:
> What do you think about adding the $options and $limit arguments to those
> two Exception methods?
With debug_backtrace() adding those reduces the work the engine has to
do while collecting the data, getTrace() is simply passing a
pre-existing zval array to the user, so adding the logic their makes the
implementation more complex and usage of these options slows down the
operation (not that performance of those should really matter ;-) )
I'd prefer to keep it clean and simple :)
johannes