Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23880 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36158 invoked by uid 1010); 3 Jun 2006 12:55:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 36143 invoked from network); 3 Jun 2006 12:55:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jun 2006 12:55:04 -0000 X-PHP-List-Original-Sender: shiznatz@gmail.com X-Host-Fingerprint: 64.233.182.184 nf-out-0910.google.com Linux 2.4/2.6 Received: from ([64.233.182.184:49610] helo=nf-out-0910.google.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 18/A8-22639-6A681844 for ; Sat, 03 Jun 2006 08:55:03 -0400 Received: by nf-out-0910.google.com with SMTP id n28so1009280nfc for ; Sat, 03 Jun 2006 05:55:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=M158ALCybThC7Y0I4emdF9E03Rnit2EtOJqmr2maWxdIy+VEfl3rcnAt7tJsQBUl6Z+vkHm+BrYfZsSREeDrGyqEF7iQl9Rmld2orIwbkGz1kZ0HC2lezaGWVtganFgUwsRR/JQ4klLgl3sLE40SeV5nt+ebakXD2QduNCK8KaM= Received: by 10.49.2.11 with SMTP id e11mr1596106nfi; Sat, 03 Jun 2006 05:55:00 -0700 (PDT) Received: by 10.49.55.15 with HTTP; Sat, 3 Jun 2006 05:55:00 -0700 (PDT) Message-ID: <1944df00606030555i4e0e1c21oa6db0ede201dc021@mail.gmail.com> Date: Sat, 3 Jun 2006 22:55:00 +1000 To: internals@lists.php.net In-Reply-To: <281938697.20060603144727@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> <281938697.20060603144727@marcus-boerger.de> Subject: Re: [PHP-DEV] Missing __toString() part From: shiznatz@gmail.com ("Robert Amos") Hi, Is it really worth enabling a whole new area where problems could occur just for this? Can you provide an example of where it might actually be considered useful and not just being lazy? -Rob On 6/3/06, Marcus Boerger wrote: > Hello Pierre, > > ever thought that we use tests to check special behavior and that > those snippets have little to do with real applications? Obviously > not. The idea behind is that for instance you might use an array as > a translation and use an object to *calculate* the index. > > Saturday, June 3, 2006, 2:40:29 PM, you 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 > > > > Best regards, > Marcus > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Xnyo - http://xnyo.odynia.org/