Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8880 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39322 invoked by uid 1010); 1 Apr 2004 23:07:47 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 39298 invoked from network); 1 Apr 2004 23:07:46 -0000 Received: from unknown (HELO central.agent911.com) (66.35.213.121) by pb1.pair.com with SMTP; 1 Apr 2004 23:07:46 -0000 Received: from central.agent911.com (localhost [127.0.0.1]) by central.agent911.com (8.12.9/8.12.9) with ESMTP id i31NDSHV011433 for ; Thu, 1 Apr 2004 15:13:28 -0800 (PST) Received: from localhost (david@localhost) by central.agent911.com (8.12.9/8.12.8/Submit) with ESMTP id i31NDSPj011430 for ; Thu, 1 Apr 2004 15:13:28 -0800 (PST) X-Authentication-Warning: central.agent911.com: david owned process doing -bs Date: Thu, 1 Apr 2004 15:13:28 -0800 (PST) To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: __toString() with cast is broken in php5 RC1 From: david@agent911.com (David Giffin) Hi There, I just got a chance tp update to PHP5 RC1 and noticed that some things have changed for the __toString method. It seems that it it only getting called when the object is printed or echo. Casting the object to a string returns the Object #. Here is an example: ---- The Script: ----- Produces: obj Object ( ) Object id #1yo!! Thanks, David