No there really isn't. I wrote an extension that does it for me, but I am waiting to see what the second zend engine will have for this rather that using my hack. Maybe check the Zend Engine 2 mailing list to see what the future may hold.
Matt Mika Tuupola wrote: > > Is there a way to create/add methods runtime to a class via > constructor or static factory method? I know it is possible > to create functions runtime using eval() or create_function() > but I havent been able to make them appear as methods for > a class. > > -- > Mika Tuupola http://www.appelsiini.net/~tuupola/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php