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