Re: Stack trace function would be really useful!

From: Date: Mon, 22 Jan 2001 22:45:18 +0000
Subject: Re: Stack trace function would be really useful!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-36109@lists.php.net to get a copy of this message
> So, lately I've been using a function, handleException(String > errorType), > which draws a nice page describing gently that something has gone wrong, > etc. Unfortunately this way can't report the line number of the function > that called it and I'd rather not have to manually include that info > at each calling site. > > If there was a PHP function that printed out the call-stack, I'd be > totally set. Is there such a function (I looked, but perhaps with the > wrong keywords), or if not, could it be easily added? I don't think there is such a thing just yet, but it has been asked for a lot... You could, of course, use handleException($error, __FILE__, __LINE__) everywhere... Don't miss the Zend Web Store's Grand Opening on January 23, 2001! http://www.zend.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#36109) next »