Re: Getting the name of a function

From: Date: Fri, 29 Feb 2008 12:44:55 +0000
Subject: Re: Getting the name of a function
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-270730@lists.php.net to get a copy of this message
Daniel Brown schreef:
On Thu, Feb 28, 2008 at 5:06 AM, Jochem Maas <jochem@iamjochem.com> wrote:
Daniel Brown schreef:
On Wed, Feb 27, 2008 at 1:56 PM, Richard S. Crawford
<rscrawford@mossroot.com> wrote: [snip!]
I know that I could pass the name of the function as a parameter to the error() function (e.g. error("bad_function","This is dumb")) but I'd rather keep it simpler than that. Is there a way to do this?
    Not without a lower-level stack trace utility like xdebug, as far
huh? what about debug_backtrace() ... contains plenty of info, including function names of everything in the stack. of course something like xdebug can take it to a whole new level.
    You're right.  Forgot about that function.  :-\
your forgiven, you've probably had a lot on your mind lately what with choosing a dress for the ceremony :-P


« previous php.general (#270730) next »