Re: bit of an odd bug
| From: | Wez Furlong | Date: | Tue, 04 Jan 2005 17:15:41 +0000 |
| Subject: | Re: bit of an odd bug | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-14278@lists.php.net to get a copy of this message | ||
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 <gareth@fission.org.uk> 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
>
>