Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70488 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52247 invoked from network); 3 Dec 2013 10:19:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Dec 2013 10:19:25 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:36139] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CF/F0-46967-A20BD925 for ; Tue, 03 Dec 2013 05:19:24 -0500 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id C8AADE203A; Tue, 3 Dec 2013 10:19:19 +0000 (GMT) Date: Tue, 3 Dec 2013 10:19:19 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Terry Ellison cc: PHP Internals In-Reply-To: <528CE64A.1020303@gmail.com> Message-ID: References: <528CE64A.1020303@gmail.com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Comments on non-unique naming convention for closures From: derick@php.net (Derick Rethans) 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