Function call introspection: possible or not?
| From: | Geoff Caplan | Date: | Fri, 31 Aug 2001 23:29:59 +0000 |
| Subject: | Function call introspection: possible or not? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-65631@lists.php.net to get a copy of this message | ||
Hi folks
Just in case I am missing something -
Is there any way for a function to determine the name of the calling
function?
I want my database abstraction layer to be able to log query errors against
the name of the calling function, but I would rather not have to pass the
name in the query request every time. Any suggestions?
Thanks
Geoff Caplan
Advantae Ltd