caller function?
| From: | Tom Fishwick | Date: | Sat, 10 Feb 2001 21:31:42 +0000 |
| Subject: | caller function? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-46333@lists.php.net to get a copy of this message | ||
hi people,
I was just wondering if the caller() function is being worked on? I
have this application that's about 6000 lines of php code, and aprox,
1/4 done. I've been starting to put in my methods stuff like
if(get_class($foo) != 'foo'))
trigger_error('$foo is not of type foo',E_USER_ERROR);
and it would be _awesome_ for the trigger_ function to be able to say
who called it. Or do a stack trace or something.
thanks,
Tom