Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14278 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14678 invoked by uid 1010); 4 Jan 2005 17:15:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 14616 invoked from network); 4 Jan 2005 17:15:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2005 17:15:45 -0000 X-Host-Fingerprint: 64.233.184.200 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.200:34952] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity HEAD (r3992M)) with SMTP id D8/FC-06279-14FCAD14 for ; Tue, 04 Jan 2005 12:15:45 -0500 Received: by wproxy.gmail.com with SMTP id 36so368229wri for ; Tue, 04 Jan 2005 09:15:42 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Pu4duIHjA3RB/HBgMpwyg4oAIt7CNrl4eh38bm4mnVZgS/uewajXj9dZ+usDTDYQsdFIoi5L/vWE1FzcyDiAjR9mg5Y7J0kThXeV5TYK7L3oYZHOP1q9FUfY8zWKEYF0bnLk+nHSxdgvY8e/cOvF9lHfi5WrgUeflEYA3YmBfJY= Received: by 10.54.19.64 with SMTP id 64mr322294wrs; Tue, 04 Jan 2005 09:15:42 -0800 (PST) Received: by 10.54.59.28 with HTTP; Tue, 4 Jan 2005 09:15:41 -0800 (PST) Message-ID: <4e89b426050104091555297714@mail.gmail.com> Date: Tue, 4 Jan 2005 12:15:41 -0500 Reply-To: Wez Furlong To: Gareth Ardron Cc: internals@lists.php.net In-Reply-To: <41DAAFCC.8020905@fission.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <41DA068A.9080009@fission.org.uk> <5c2874720501040342d92196d@mail.gmail.com> <41DAAFCC.8020905@fission.org.uk> Subject: Re: [PHP-DEV] bit of an odd bug From: kingwez@gmail.com (Wez Furlong) 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 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 > >