Re: Comments on non-unique naming convention for closures
| From: | Derick Rethans | Date: | Tue, 03 Dec 2013 10:19:19 +0000 |
| Subject: | Re: Comments on non-unique naming convention for closures | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-70488@lists.php.net to get a copy of this message | ||
On Wed, 20 Nov 2013, Terry Ellison wrote:
> What I am suggesting is that this convention should be changed for something
> like "\0{closure}$name$ctime$index" or even just "\0{closure}$uuid" using
> the
> standard UUID algo. Reactions? Comments?
For Xdebug to show them in stack traces, and for profiling, I rewrite
them to: {closure:/path/to/closure-stack-trace.php:4-7}
See https://github.com/xdebug/xdebug/blob/master/xdebug_stack.c#L909
cheers,
Derick
--
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug
Posted with an email client that doesn't mangle email: alpine