php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #32382 Method of restricting function execution to specified scripts
Submitted: 2005-03-20 12:03 UTC Modified: 2005-03-20 12:51 UTC
From: jgauld at blueyonder dot co dot uk Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: Irrelevant OS: Any
Private report: No CVE-ID: None
 [2005-03-20 12:03 UTC] 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__?)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-20 12:51 UTC] johannes@php.net
We have debug_backtrace() and debug_print_backtrace() 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 09:01:28 2024 UTC