Re: regression in HEAD since last week?

From: Date: Fri, 22 Jul 2005 18:10:48 +0000
Subject: Re: regression in HEAD since last week?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-17387@lists.php.net to get a copy of this message
Hi Wez, I didn't look on any related code but I guess the reason might be related to the fix of #33710 (ArrayAccess objects doen't initialize $this) johannes P.S. sorry if this comes more than once - I failed to use my mailer :-) On Friday 22 July 2005 17:44, Wez Furlong wrote: > Just noticed that something changed in HEAD since last week. > > We have some code that does this: > > class foo { > function foo() { > $this['data'] = array(); > } > } > > last week that ran fine, this week it gives me an error: > 'Cannot use object of type foo as an array'. > > I agree that the code above looks suspect, and that changing it to > $this->data = array() works fine, I just wanted to point out the > behaviour change since last week. > > --Wez.

« previous php.internals (#17387) next »