Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23886 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8599 invoked by uid 1010); 3 Jun 2006 16:16:52 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 8584 invoked from network); 3 Jun 2006 16:16:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jun 2006 16:16:52 -0000 X-PHP-List-Original-Sender: iliaal@gmail.com X-Host-Fingerprint: 64.233.184.227 wr-out-0506.google.com Linux 2.4/2.6 Received: from ([64.233.184.227:11695] helo=wr-out-0506.google.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id FA/DF-22639-2F5B1844 for ; Sat, 03 Jun 2006 12:16:50 -0400 Received: by wr-out-0506.google.com with SMTP id 58so1244349wri for ; Sat, 03 Jun 2006 09:16:47 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:x-priority:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer:sender; b=kw9CUPbAaYpJIr3ss2khosjIFzbC+uYLlNAE6xyw6FJyavn4eXoXQYuvqAu0ug0frxkrzo7bPdqkz3ZlPtZItjBsq3usELtJvTERMz1PXw3JnKMg2e8w1cVCW8FXcnWOwPdHXi2aG8aAp1XoaKwKm7yf1Z2Gh1Lqr7Ckz8WGdAU= Received: by 10.65.150.3 with SMTP id c3mr2526501qbo; Sat, 03 Jun 2006 09:16:47 -0700 (PDT) Received: from ?192.168.1.6? ( [72.59.8.142]) by mx.gmail.com with ESMTP id f13sm1475830qba.2006.06.03.09.16.45; Sat, 03 Jun 2006 09:16:45 -0700 (PDT) In-Reply-To: <795156743.20060603134212@marcus-boerger.de> References: <795156743.20060603134212@marcus-boerger.de> Mime-Version: 1.0 (Apple Message framework v750) X-Priority: 3 (Normal) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: <18CE805D-C032-4B64-950A-119E46287AF5@prohost.org> Cc: internals@lists.php.net, Dmitry Stogov , Andi Gutmans , Zeev Suraski , Ilia Alshanetsky Content-Transfer-Encoding: 7bit Date: Sat, 3 Jun 2006 12:16:41 -0400 To: Marcus Boerger X-Mailer: Apple Mail (2.750) Sender: Ilia Alshanetsky Subject: Re: [PHP-DEV] Missing __toString() part From: ilia@prohost.org (Ilia Alshanetsky) I think this is a potentially missing bit of functionality we definitely need to consider including. There is really no technical reason why $foo[new ToStringObject] = "bar"; cannot work or a reason why it shouldn't as far as functionality goes. Ilia Alshanetsky On 3-Jun-06, at 7:42 AM, 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. > > -- > Best regards, > Marcus mailto:mail@marcus-boerger.de > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php