Re: [PHP4BETA] new get_stack_frames() function?

From: Date: Tue, 07 Dec 1999 14:26:06 +0000
Subject: Re: [PHP4BETA] new get_stack_frames() function?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-7597@lists.php.net to get a copy of this message
On Tue, 07 Dec 1999, Thies C . Arntzen wrote: > hi, > > i'm starting to thing about functions that make debugging a php-app > easier. > > > i'd love to see a get_stack_frame() function that will output an array > like this: > > array( > array("file" => "webcounter.php", "function" => > "main()", "line" =>12), > array("file" => "webcounter.php", "function" => > "getstats()", "line" =>456) > ..etcetc... > ) > > (no i need to push my luck;-) > > nice to have would be a function get_stack_frame_info($stackpos). that > would return all the known info for stack-frame $stackpos (locals etc). > > does that make sense? Yes. I suppose "function" will be empty if you're in global scope. And it'll need to work properly with included/required files. Don't know if we'll need get_stack_frames_count() function too. -Andrei * Think digital, act analog. *

« previous php.version4 (#7597) next »