Re: removing functions?
| From: | Andrei Zmievski | Date: | Sat, 27 May 2000 15:07:59 +0000 |
| Subject: | Re: removing functions? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-19602@lists.php.net to get a copy of this message | ||
On Fri, 26 May 2000, Chuck Adams wrote:
> I was wondering how I might go about disabling functions at runtime?
> Or if safe mode can be turned on (and of course not turned back off)
> at runtime? The script has to do a number of "unsafe" things before
> handing control over to user code, and pass some of results over to
> it, so it's not really a simple matter of execing a script that is in
> a safemode directory.
>
> The documentation seems pretty clear on how to add new functions with
> extensions, but not how to manage existing ones. Is this doable with,
> say, an extension that meddles with the function table? If so, any
> pointers on where I should start?
I was actually thinking about such functionality yesterday. It would
certainly be possible to remove functions from the function table.
Another idea was to allow users to rename functions or create aliases to
them.
-Andrei
As I was going up the stair, I met a man who wasn't there.
He wasn't there again today. I wish, I wish he'd stay away.
-Hughes Mearns