Bug #13944: in a function, I want to know the file/line that CALLED the function
| From: | tysonlt_SPAM_IS_EVIL at webmedia dot com dot au | Date: | Tue, 06 Nov 2001 02:41:57 +0000 |
| Subject: | Bug #13944: in a function, I want to know the file/line that CALLED the function | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-69676@lists.php.net to get a copy of this message | ||
From: tysonlt_SPAM_IS_EVIL@webmedia.com.au
Operating system: Linux RH7.1
PHP version: 4.0.6
PHP Bug Type: Feature/Change Request
Bug description: in a function, I want to know the file/line that CALLED the function
I would love to be able, from within a function, to find out the file/line
no that called me.
For example:
/// some code ///
$x = call_a_function();
function call_a_function() {
echo "MY LOCATION: __FILE__ : __LINE__";
/*** This is what I would LOVE ***/
echo "CALLED FROM: __CALLING_FILE__ : __CALLING_LINE__";
}
That would be fantastic!
--
Edit bug report at: http://bugs.php.net/?id=13944&edit=1