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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jgauld at blueyonder dot co dot uk
New email:
PHP Version: OS:

 

 [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 13:01:30 2024 UTC