Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17387 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95912 invoked by uid 1010); 22 Jul 2005 18:11:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 95896 invoked from network); 22 Jul 2005 18:11:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jul 2005 18:11:12 -0000 X-Host-Fingerprint: 82.165.35.142 thinkforge.org Linux 2.4/2.6 Received: from ([82.165.35.142:24623] helo=mail.mayflowersystem.com) by pb1.pair.com (ecelerity 2.0 beta r(6227M)) with SMTP id 48/A2-33635-FB631E24 for ; Fri, 22 Jul 2005 14:11:12 -0400 Received: (qmail 26113 invoked by uid 60010); 22 Jul 2005 18:11:09 -0000 Received: from 84.150.107.224 by mail (envelope-from , uid 89) with qmail-scanner-1.24 (uvscan: v4.3.20/v4362. spamassassin: 2.63. Clear:RC:1(84.150.107.224):. Processed in 0.512136 secs); 22 Jul 2005 18:11:09 -0000 Received: from unknown (HELO ?192.168.1.9?) (schlueter@mayflower.de@84.150.107.224) by 0 with (RC4-MD5 encrypted) SMTP; 22 Jul 2005 18:11:08 -0000 To: PHPdev , Andi Gutmans Date: Fri, 22 Jul 2005 20:10:48 +0200 User-Agent: KMail/1.8 References: <4e89b42605072208443b8d366d@mail.gmail.com> In-Reply-To: <4e89b42605072208443b8d366d@mail.gmail.com> Cc: dmitry@php.net MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200507222010.48394.johannes@php.net> Subject: Re: [PHP-DEV] regression in HEAD since last week? From: johannes@php.net (Johannes Schlueter) 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.