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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Wed May 15 07:01:32 2024 UTC