Date: 10/29/00
- Next message: Zeev Suraski: "Re: [PHP-DEV] Stacktrace in errormessages"
- Previous message: Ragnar Kjørstad: "Re: [PHP-DEV] Stacktrace in errormessages"
- In reply to: Ragnar Kjørstad: "Re: [PHP-DEV] Stacktrace in errormessages"
- Next in thread: Ragnar Kjørstad: "Re: [PHP-DEV] Stacktrace in errormessages"
- Reply: Ragnar Kjørstad: "Re: [PHP-DEV] Stacktrace in errormessages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>> http://www.zend.com/-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Zeev Suraski: "Re: [PHP-DEV] Stacktrace in errormessages"
- Previous message: Ragnar Kjørstad: "Re: [PHP-DEV] Stacktrace in errormessages"
- In reply to: Ragnar Kjørstad: "Re: [PHP-DEV] Stacktrace in errormessages"
- Next in thread: Ragnar Kjørstad: "Re: [PHP-DEV] Stacktrace in errormessages"
- Reply: Ragnar Kjørstad: "Re: [PHP-DEV] Stacktrace in errormessages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

