Re: removing functions?

From: Date: Sat, 27 May 2000 23:53:23 +0000
Subject: Re: removing functions?
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-19621@lists.php.net to get a copy of this message
At 23:31 27/05/2000 , Chuck Adams wrote:
Something like this looks like a start to me, assuming it's in a function that took the name of a function as an arg: zend_hash_del_key_or_index(CG(function_table), function_name->u.constant.value.str.val,function_name->u.constant.value.str .len+1, -1, HASH_DEL_KEY); Since functions are looked up by name every time they're called, this shouldn't create any inconsistent states. Does this look sensible or am I courting disaster here?
It's not something I'd like to see being added as an end-user capability; Definitely not aliasing functions (we thought about it about 2 years ago, and decided against it, due to the mess it can create). Even deleting functions can cause a mess, because effectively, a library may end up replacing the functionality of a built-in function with a completely different implementation and functionality that the end user (the caller) is not aware of. I think that something at the php.ini level that allows administrators to disable certain functions should do. It'll be server-wide and configurable by administrators only. Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/

« previous php.dev (#19621) next »