Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30033 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19235 invoked by uid 1010); 1 Jun 2007 22:41:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 19220 invoked from network); 1 Jun 2007 22:41:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2007 22:41:51 -0000 Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain l-i-e.com from 67.139.134.202 cause and error) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:1955] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A2/C3-17036-CA0A0664 for ; Fri, 01 Jun 2007 18:41:49 -0400 Received: (qmail 31598 invoked by uid 98); 1 Jun 2007 22:41:49 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.01 (clamdscan: 0.88.7/3335. Clear:RC:1(127.0.0.1):. Processed in 0.066638 secs); 01 Jun 2007 22:41:49 -0000 Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 1 Jun 2007 22:41:49 -0000 Received: from 216.230.84.67 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Fri, 1 Jun 2007 17:41:49 -0500 (CDT) Message-ID: <54286.216.230.84.67.1180737709.squirrel@www.l-i-e.com> In-Reply-To: <46605218.7070706@zend.com> References: <465D8C6B.2000809@php.net> <465DB3A9.6010707@zend.com> <465DBAC6.5080700@php.net> <465F0EA7.7090608@zend.com> <60168.216.230.84.67.1180643634.squirrel@www.l-i-e.com> <884476655.20070601005146@marcus-boerger.de> <465F5595.7040201@zend.com> <46605218.7070706@zend.com> Date: Fri, 1 Jun 2007 17:41:49 -0500 (CDT) To: "Stanislav Malyshev" Cc: "Michael Wallner" , internals@lists.php.net Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] [patch] Callbacks bug/change request From: ceo@l-i-e.com ("Richard Lynch") On Fri, June 1, 2007 12:06 pm, Stanislav Malyshev wrote: >> You'd probably do something along those lines if it were possible: >> >> ((ParentClass) $child)->virtualMethod(); > > Looks like bad style to me - why not call child's method and it would, > if needed, pass control to parent? Or, if, for some reason, you need to bypass the child's method, and call only the parent's method of the same name, why not just look up the class->Parent and then use array(Parent, 'function') -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?