Re: looking for function (pre 4.3.x)

From: Date: Sun, 25 May 2003 07:32:20 +0000
Subject: Re: looking for function (pre 4.3.x)
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-148901@lists.php.net to get a copy of this message
I should have mentioned that the following function returns the call stack: get_function_call_stack(); A simple print_r( get_function_call_stack() ); will suffice to exhibit the structure of the output. Cheers, Rob. Robert Cummings wrote: > > I wrote the extension at the following link some time ago for exactly > the purpose you are requesting: > > http://www.wocmud.org/Carnage/download/ftrace.tar.gz > > Cheers, > Rob. > > "Carl P. Corliss" wrote: > > > > Is there a known function that will give you the name of the calling function, > > something like this: > > > > $callee = who_the_heck_called_me(); > > > > where $callee would then be an array with the following indices: > > > > calling_function > > calling_file > > calling_line > > > > or, if not, does anyone have any idea how to go about creating this? > > > > TIA :) -- .---------------------------------------------. | Worlds of Carnage - http://www.wocmud.org | :---------------------------------------------: | Come visit a world of myth and legend where | | fantastical creatures come to life and the | | stuff of nightmares grasp for your soul. | `---------------------------------------------'

« previous php.general (#148901) next »