Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23878 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33325 invoked by uid 1010); 3 Jun 2006 12:49:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33310 invoked from network); 3 Jun 2006 12:49:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jun 2006 12:49:55 -0000 X-PHP-List-Original-Sender: michael.walter@gmail.com X-Host-Fingerprint: 66.249.82.204 wx-out-0102.google.com Linux 2.4/2.6 Received: from ([66.249.82.204:26732] helo=wx-out-0102.google.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 25/38-22639-27581844 for ; Sat, 03 Jun 2006 08:49:54 -0400 Received: by wx-out-0102.google.com with SMTP id s14so535986wxc for ; Sat, 03 Jun 2006 05:49:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sN+7aSUNhGn3vTdfmOCyn0nYH/RQRbrOX+1N5PduF4EmWCpi4oC+VZjBD80YoxIjMfz7jhSJclZ0hJXh/TNG5taVUZBNFBfVtDqu7Du1Tgn5V1Lw0bBQZ26z6AuWXhv3I53OFCHY3dIHZauOfqCBamEF3Wh3iga0ACS7v5WZlJ8= Received: by 10.70.122.15 with SMTP id u15mr1685178wxc; Sat, 03 Jun 2006 05:49:50 -0700 (PDT) Received: by 10.70.87.4 with HTTP; Sat, 3 Jun 2006 05:49:50 -0700 (PDT) Message-ID: <877e9a170606030549o7d6ef6c3p293e8255c89cafe7@mail.gmail.com> Date: Sat, 3 Jun 2006 14:49:50 +0200 To: Pierre Cc: "Marcus Boerger" , internals@lists.php.net, "Dmitry Stogov" , "Andi Gutmans" , "Zeev Suraski" , "Ilia Alshanetsky" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <795156743.20060603134212@marcus-boerger.de> Subject: Re: [PHP-DEV] Missing __toString() part From: michael.walter@gmail.com ("Michael Walter") Yes definitely, that functionality would be useful. Regards, Michael On 6/3/06, Pierre wrote: > Hi, > > On 6/3/06, Marcus Boerger wrote: > > Hello guys, > > > > the attached patch closes one more __toString() part. It allows > > to use objects that define __toString as indexes to arrays. What do > > you guys think about this, should we add it or stay with the old > > behavior that didn't allow objects as indexes at all. > > $arr[new Test] = 'abc'; > > makes very little sense to me, as well as > > $a = new Test; $arr[$a] = 'abc'; > > Do we really want to support that? > > --Pierre > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >