Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24673 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22123 invoked by uid 1010); 19 Jul 2006 12:51:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 22108 invoked from network); 19 Jul 2006 12:51:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jul 2006 12:51:59 -0000 X-PHP-List-Original-Sender: christian.stocker@bitflux.ch X-Host-Fingerprint: 212.55.202.210 host-210.bitflux.ch Linux 2.5 (sometimes 2.4) (4) Received: from ([212.55.202.210:36107] helo=devel.bitflux.ch) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id C9/B2-11992-BEA2EB44 for ; Wed, 19 Jul 2006 08:51:57 -0400 Received: from localhost (localhost [127.0.0.1]) by devel.bitflux.ch (Postfix) with ESMTP id 60817E749A for ; Wed, 19 Jul 2006 14:51:53 +0200 (CEST) Received: from devel.bitflux.ch ([127.0.0.1]) by localhost (devel.bitflux.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08508-02-3 for ; Wed, 19 Jul 2006 14:51:50 +0200 (CEST) Received: from [192.168.84.101] (host-195.bitflux.ch [212.55.202.195]) by devel.bitflux.ch (Postfix) with ESMTP id 368EAE71A0 for ; Wed, 19 Jul 2006 14:51:50 +0200 (CEST) Message-ID: <44BE2AE5.4090700@bitflux.ch> Date: Wed, 19 Jul 2006 14:51:49 +0200 Organization: Bitflux GmbH User-Agent: Thunderbird 1.5.0.4 (Macintosh/20060516) MIME-Version: 1.0 To: PHPdev Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at bitflux.ch Subject: PHP 5.2-dev "Cannot use array returned from foo::__get('bar') in write context" From: christian.stocker@bitflux.ch (Christian Stocker) Just updated to the latest PHP 5.2-dev from CVS and now I get an Fatal error with the following code *** "bar","bar"=>"foo"); } } $f = new foo(); //error foreach($f->bar as $key => $value) { print "$key => $value"; } ?> *** It throws a "Fatal error: Cannot use array returned from foo::__get('bar') in write context" on the foreach line. Quite annoying :) That worked fine with 5.1 and also with 5.2-dev from a few days/weeks ago (don't know, when I cvs-uped last time, but can't be that long) Is that expected/wished behaviour? chregu -- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 44 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | christian.stocker@bitflux.ch | GPG 0x5CE1DECB