Re: Reflection API Injection Mechanism

From: Date: Fri, 09 Feb 2007 17:10:14 +0000
Subject: Re: Reflection API Injection Mechanism
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-27951@lists.php.net to get a copy of this message
Jim Wilson wrote: > 1) Is there a way to inject a method into a Class such that future > instantiations of that Class will have the method? For example: > > 2) Is there a way to change a method which already exists, as in by > overwriting it with a new function? I'm looking to do the equivalent of > JavaScript's 'function as member' treatment, where it's easy to do > something See php.net/runkit - Chris

« previous php.internals (#27951) next »