Re: Stacktrace in errormessages

From: Date: Sun, 29 Oct 2000 16:23:06 +0000
Subject: Re: Stacktrace in errormessages
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-36349@lists.php.net to get a copy of this message
The function_call_stack is a compile-time data structure. It won't give you anything in runtime. Zeev At 18:06 29-10-00, Ragnar Kjørstad wrote:
On Sun, Oct 29, 2000 at 10:34:23AM +0200, Zeev Suraski wrote:
I would like to have php include a stacktrace in errormessages to easy debugging. I've tried modifying zend to do this, but it didn't work :(
Doing this would significantly slow runtime performance, which is why it wasn't done in the first place... Huh? The function_call_stack is maintained every time the user enters / exits a function, right? And actually creating the stacktrace from this datastructure should take a few ms, but only when there is an error, right? I'm sure nobody minds if their php's _fail_ a little bit slower? If, however, there was an performance impact, maybe it could be a configuration-option? or a compile option? I guess most people that need high performance (and would need to turn it off) have dedicated development boxes. Did you look at my patch? Is it not possible to do it this way, or was there just a small glitch in my code? -- Ragnar Kjørstad Modus Media
-- Zeev Suraski <zeev@zend.com> http://www.zend.com/

« previous php.dev (#36349) next »