Re: [Zend Engine 2] Re: Undefining user functions/classes at runtime?

From: Date: Mon, 24 Sep 2001 17:09:22 +0000
Subject: Re: [Zend Engine 2] Re: Undefining user functions/classes at runtime?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-66479@lists.php.net to get a copy of this message
Andrei is writing an extension that does this (explicitly per class). - Stig ["Harald Radi" <harald.radi@nme.at>] > something like the current oo api mechanism would be useful for userland > too and would possible > solve markus' problem too. > > if you call a member on an object there could be an __invoke() method > that handles all calls of > unknown functions. > > thus $obj->foo("bar"); > > will end in $obj->__invoke("foo", "bar"); > > if the member foo() doesn't exist. > > -harald. > > > -----Original Message----- > > From: Markus Fischer [mailto:mfischer@guru.josefine.at] > > Sent: Sunday, September 23, 2001 8:24 PM > > To: Jeroen van Wolffelaar > > Cc: PHP Developers Mailing List; engine2@lists.zend.com > > Subject: [Zend Engine 2] Re: Undefining user > > functions/classes at runtime? > > > > > > On Sun, Sep 23, 2001 at 08:03:59PM +0200, Jeroen van > > Wolffelaar wrote : > > > > Is it currently possible to undefine user functions or classes at > > > > runtime? Although not a newbie ;) I'm unsure if its > > possible right > > > > now. > > > > > > No, you can't do that in PHP-userland (in the C code it can > > be done, > > > see implementation of create_function). > > > > > And IMHO that should remain so. > > > > > > > If not, will this be support (ZE2) ? > > > > > > I hope not. Can you give an example where you think it will > > be useful? > > > > I'm currently writing an application which is only a dumb > > client stub (php-gtk) which receives its code via xml-rpc and > > executes it. The problem I have is that I can't refetch the > > same code again because I redefinition errors of all kind. > > > > - Markus > > -- Stig Sæther Bakken <ssb@alltheweb.com> Fast Search & Transfer ASA, Trondheim, Norway

« previous php.dev (#66479) next »