Stack trace function would be really useful!

From: Date: Mon, 22 Jan 2001 19:33:59 +0000
Subject: Stack trace function would be really useful!
Groups: php.general 
Request: Send a blank email to php-general+get-36065@lists.php.net to get a copy of this message
Back in my rough-and-ready PHP days, I used to report runtime errors using include("some long description of the error");, which would report: file "some long description of the error" not found in foo.php line 32. Which is great for developers, but awful if a Real User ever sees it. 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? thanks, dylan

« previous php.general (#36065) next »