Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8648 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68199 invoked by uid 1010); 22 Mar 2004 11:30:25 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 68173 invoked by uid 1007); 22 Mar 2004 11:30:24 -0000 Message-ID: <20040322113024.68172.qmail@pb1.pair.com> To: internals@lists.php.net Date: Mon, 22 Mar 2004 12:30:48 +0100 Lines: 39 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 X-Posted-By: 80.35.119.102 Subject: 5.0.0RC1: __toString() problem From: su1d@phpclub.net ("su1d") Hi! It seems like __toString() method is not called as it is announced on http://www.php.net/zend-engine-2.php The only working case is when you pass an object to echo(). Unfortunately, I couldn't check out the bugs DB, because there's no access to bugs.php.net from my ISP. So, I'm awfully sorry if you're aware of this issue already, and/or this all has been discussed before. in plain English: --TEST-- PHP5 __toString() method --FILE-- --EXPECT-- ABC ABC ABC the test outputs: ABC Object id #1 Object id #1