I've checked google and the PHP manual, with no results,
so i thought i'd ask here:

Is there any functionality in PHP to allow a function to
find out what function/file/line called it?  AFAIK, perl
can do this, and i've always found it a big help when
debugging to have functions die with a call to a standard
error handler.

(for example)
function one() {
   if ($badstuff)
    death("I died for this reason");
}

i know that calling death(__FILE__, __LINE__) will
accomplish this, but i really don't want to do that.

thanks in advance.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to