Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30366 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90577 invoked by uid 1010); 29 Jun 2007 14:40:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 90562 invoked from network); 29 Jun 2007 14:40:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jun 2007 14:40:42 -0000 Authentication-Results: pb1.pair.com header.from=schultz@widescreen.ch; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=schultz@widescreen.ch; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain widescreen.ch from 195.49.42.11 cause and error) X-PHP-List-Original-Sender: schultz@widescreen.ch X-Host-Fingerprint: 195.49.42.11 mail.screenlight.ch FreeBSD 4.8-5.1 (or MacOS X 10.2-10.3) Received: from [195.49.42.11] ([195.49.42.11:57267] helo=screenlight.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/18-11190-5E915864 for ; Fri, 29 Jun 2007 10:40:41 -0400 Received: from [195.49.42.3] (account lars@toolpark.com HELO [192.168.1.168]) by screenlight.ch (CommuniGate Pro SMTP 4.1.8) with ESMTP id 3918467 for internals@lists.php.net; Fri, 29 Jun 2007 16:40:02 +0200 Message-ID: <468519DC.8060502@widescreen.ch> Date: Fri, 29 Jun 2007 16:40:28 +0200 User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: toString() and Object #ID From: schultz@widescreen.ch (Lars Schultz) Hi there I just tried to switch from 5.1 to 5.2.3 and got thrown off right away by: "Object of class MyObject could not be converted to string" I googled a bit and also read any Messages in the internals list but couldn't find a decisive answer as to wether this will stay this way or not. In the "PHP 5 Bug Summary Report" I found Bug # 40799 "change string conversion behaviour for objects not implementing __toString()" which is still open. I don't want to complain or anything but I'd like to know wether it's feasible to wait for a change in this current, modified, behaviour or if it's going to stay this way. I used the previous behaviour mostly for debugging purposes where I wanted to get a visual (string) handle for any given object, which helps ALOT when trying to figure out wether one has a copy or the original and wether to references point to the same object....(obj1 === obj2 is not always helpful). Is there any other way than casting an object to a string to get an objects #ID? Thanks for your time. Lars