Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30018 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87668 invoked by uid 1010); 31 May 2007 22:51:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 87652 invoked from network); 31 May 2007 22:51:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 May 2007 22:51:50 -0000 Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 85.214.94.56 cause and error) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Received: from [85.214.94.56] ([85.214.94.56:38049] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CF/60-17608-4815F564 for ; Thu, 31 May 2007 18:51:50 -0400 Received: from localhost (h1149922.serverkompetenz.net [85.214.94.56]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id C598A1B350F; Fri, 1 Jun 2007 00:51:45 +0200 (CEST) Date: Fri, 1 Jun 2007 00:51:46 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <884476655.20070601005146@marcus-boerger.de> To: Richard Lynch CC: Stanislav Malyshev , Etienne Kneuss , In-Reply-To: <60168.216.230.84.67.1180643634.squirrel@www.l-i-e.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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [patch] Callbacks bug/change request From: helly@php.net (Marcus Boerger) Hello Richard, the feature actually exists because we need array($obj, 'parent::func') best regards marcus Thursday, May 31, 2007, 10:33:54 PM, you wrote: > On Thu, May 31, 2007 1:06 pm, Stanislav Malyshev wrote: >>> It's already supported, but buggy right now. I don't believe fixing >>> it >>> for odd cases will bother anyone. >> >> Well, I'm for one not sure that callback in form array('B', >> 'parent::foo') shouldn't error out instead (I know it works now, but >> it >> never states in the docs it's legal and I don't think it was intended >> to >> work). Otherwise next thing would be array('B', 'C::foo') and that'd >> be >> a real mess. > Seems to me that anybody who thinks they need this can lookup the > parent of B and construct the right array in the first place... > I'm sure the patch is nifty, but it seems better to me to just error > out as well. > What about array('B', 'self::foo') -- I can see how that's needed to > call the static method, I guess... > -- > 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? Best regards, Marcus