If you want to do this kind of thing, why not do it properly? $foo = new $scanning_class; $foo->scanBuffer($input);
that is, after all, what "extends" is all about. --Wez On Tue, 04 Jan 2005 15:01:32 +0000, Gareth Ardron <[EMAIL PROTECTED]> wrote: > Jason Sweat wrote: > > >Hi Gareth, > > > >In addition to the other options people have mentioned, you could also > >use the old standby of: > >eval("\$result = $scanning_class::scanBuffer(\$input);"); > > > > > Cheers for all the replies, people. I may have a bit of a prod at the > internals this evening though, as this is a bloody annoying thing when > you're trying to build up a highly modularised system - and I'd like the > code as clean as possible really, not jumping through hoops like use > reflection API to do this as it has to be maintained by people who > haven't yet encountered that type of thing. > > Cheers, > > -- > Gareth Ardron > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php