Re: [patch] Callbacks bug/change request

From: Date: Thu, 31 May 2007 22:51:46 +0000
Subject: Re: [patch] Callbacks bug/change request
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-30018@lists.php.net to get a copy of this message
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

« previous php.internals (#30018) next »