From:             jgauld at blueyonder dot co dot uk
Operating system: Any
PHP version:      Irrelevant
PHP Bug Type:     Feature/Change Request
Bug description:  Method of restricting function execution to specified scripts

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 bug report at http://bugs.php.net/?id=32382&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32382&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32382&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32382&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32382&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32382&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32382&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32382&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32382&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32382&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32382&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32382&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32382&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32382&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32382&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32382&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32382&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32382&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32382&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32382&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32382&r=mysqlcfg

Reply via email to