Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23876 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29500 invoked by uid 1010); 3 Jun 2006 12:40:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 29485 invoked from network); 3 Jun 2006 12:40:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jun 2006 12:40:34 -0000 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 66.249.92.173 ug-out-1314.google.com Linux 2.4/2.6 Received: from ([66.249.92.173:61288] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 6F/B7-22639-14381844 for ; Sat, 03 Jun 2006 08:40:33 -0400 Received: by ug-out-1314.google.com with SMTP id m2so924039ugc for ; Sat, 03 Jun 2006 05:40:30 -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=S7IucOJL9dWnBMIweLgis98CLSQSQbnv0bk9rBk9uogcGK+zglIOVpduu0tXzIawPgJN25bd9mq8/LbeelTfZuZaTkXbSNRQk5Bv7kUvjLMTt3xlDzc3oN8eo6i9GKXv92iQvr4pKdeIiPpdOvvZco1N/nt4lWBMOOhdC/NmSqI= Received: by 10.67.25.9 with SMTP id c9mr1654002ugj; Sat, 03 Jun 2006 05:40:30 -0700 (PDT) Received: by 10.66.220.11 with HTTP; Sat, 3 Jun 2006 05:40:29 -0700 (PDT) Message-ID: Date: Sat, 3 Jun 2006 14:40:29 +0200 To: "Marcus Boerger" Cc: internals@lists.php.net, "Dmitry Stogov" , "Andi Gutmans" , "Zeev Suraski" , "Ilia Alshanetsky" In-Reply-To: <795156743.20060603134212@marcus-boerger.de> 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: pierre.php@gmail.com (Pierre) 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