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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
7 + 2 = ?
Subscribe to this entry?

 
 [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 08:01:34 2024 UTC