Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23958 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14839 invoked by uid 1010); 5 Jun 2006 06:47:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 14824 invoked from network); 5 Jun 2006 06:47:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2006 06:47:10 -0000 X-PHP-List-Original-Sender: dmitry@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:30049] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id DD/8D-00946-D63D3844 for ; Mon, 05 Jun 2006 02:47:09 -0400 Received: (qmail 19796 invoked from network); 5 Jun 2006 06:46:40 -0000 Received: from internal.zend.office (HELO thinkpad) (10.1.1.1) by internal.zend.office with SMTP; 5 Jun 2006 06:46:40 -0000 To: "'Marcus Boerger'" , Cc: "'Andi Gutmans'" , "'Zeev Suraski'" , "'Ilia Alshanetsky'" Date: Mon, 5 Jun 2006 10:46:54 +0400 Message-ID: <007801c6886b$d9170300$6e02a8c0@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 In-Reply-To: <795156743.20060603134212@marcus-boerger.de> Subject: RE: [PHP-DEV] Missing __toString() part From: dmitry@zend.com ("Dmitry Stogov") References: <795156743.20060603134212@marcus-boerger.de> We probably should support this, but not only for __toString(). Objects may also have internal get() (not __get()) and cast() handlers that should be supported too. Also usage of cast() in context of array offset don't say what do we like "int" or "string". Thanks. Dmitry. > -----Original Message----- > From: Marcus Boerger [mailto:mail@marcus-boerger.de] > Sent: Saturday, June 03, 2006 3:42 PM > To: internals@lists.php.net > Cc: Dmitry Stogov; Andi Gutmans; Zeev Suraski; Ilia Alshanetsky > Subject: [PHP-DEV] Missing __toString() part > > > 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 >