Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23890 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23173 invoked by uid 1010); 3 Jun 2006 17:03:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 23158 invoked from network); 3 Jun 2006 17:03:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jun 2006 17:03:53 -0000 X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:18087] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 5A/61-22639-7F0C1844 for ; Sat, 03 Jun 2006 13:03:52 -0400 Received: (qmail 21635 invoked from network); 3 Jun 2006 17:03:24 -0000 Received: from internal.zend.office (HELO mail.zend.com) (10.1.1.1) by internal.zend.office with SMTP; 3 Jun 2006 17:03:24 -0000 Date: Sat, 3 Jun 2006 20:03:24 +0300 (IDT) X-X-Sender: frodo@mail.zend.com To: Rasmus Lerdorf cc: internals@lists.php.net In-Reply-To: <4481B92E.2030802@lerdorf.com> Message-ID: References: <795156743.20060603134212@marcus-boerger.de> <18CE805D-C032-4B64-950A-119E46287AF5@prohost.org> <4481B92E.2030802@lerdorf.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Missing __toString() part From: stas@zend.com (Stanislav Malyshev) RL>>I don't understand why using the object as an index would trigger a RL>>__toString() call. PHP's array indices are not defined to be strings, RL>>so I don't see this as being a string context use and thus RL>>__toString() shouldn't be called. If so, what should be the actual key in the hash? -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115