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.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to