#32382 [Opn->Bgs]: Method of restricting function execution to specified scripts
| From: | johannes@php.net | Date: | Sun, 20 Mar 2005 11:51:49 +0000 |
| Subject: | #32382 [Opn->Bgs]: Method of restricting function execution to specified scripts | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75560@lists.php.net to get a copy of this message | ||
ID: 32382
Updated by: johannes@php.net
Reported By: jgauld at blueyonder dot co dot uk
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: Any
PHP Version: Irrelevant
New Comment:
We have debug_backtrace() and debug_print_backtrace()
Previous Comments:
------------------------------------------------------------------------
[2005-03-20 12:03:06] jgauld at blueyonder dot co dot uk
Description:
------------
It would be really helpful to have a way of determining which script
(file) has just called a function (which may or may not be defined in
an "include()"ed file), and based on some bespoke code within that
function, be able to to allow or deny it's execution.
Perhaps something along the lines of a new magic constant similar to
__FILE__ that actually holds the absolute path to the calling script
(__FILECALLER__?)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32382&edit=1