Re: [PHP-DEV] removing functions? From: Andrei Zmievski (andrei <email protected>)
Date: 05/27/00

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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>