On Thu, 28 Mar 2002, Andi Gutmans wrote:

> At 14:40 28/03/2002 +0100, Alexander Wirtz wrote:
> >Ok, this is maybe neither exactly the right place nor very important, but 
> >I've noticed a topic that I find wanting in PHP: Error handling in classes.
> >
> >When you have a class, that is used in different files or if you create 
> >multiple instances of it, you're running into trouble trying to determine 
> >from which file or which line the class method was called, as __LINE__ and 
> >__FILE__ are local variables. So it would be very convenient, to have some 
> >kind of call stack like it exists in Java(script).
> >
> >Is this totally utopic, or is there at least some kind of interest in such 
> >a feature?
> 
> 
> There has been interest in such a feature. I'm planning to get something 
> done in this direction.

I already did this in an PHP extension. It's about ready to commit.

Derick


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to