Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30367 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2470 invoked by uid 1010); 29 Jun 2007 14:56:17 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 2455 invoked from network); 29 Jun 2007 14:56:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jun 2007 14:56:17 -0000 Authentication-Results: pb1.pair.com header.from=evert@rooftopsolutions.nl; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=evert@rooftopsolutions.nl; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain rooftopsolutions.nl from 66.207.192.7 cause and error) X-PHP-List-Original-Sender: evert@rooftopsolutions.nl X-Host-Fingerprint: 66.207.192.7 smtp0.beanfield.net FreeBSD 4.6-4.9 Received: from [66.207.192.7] ([66.207.192.7:2586] helo=smtp0.beanfield.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DA/D9-11190-F8D15864 for ; Fri, 29 Jun 2007 10:56:17 -0400 Received: from 206-223-184-72.beanfield.net (206-223-184-72.beanfield.net [206.223.184.72]) by smtp0.beanfield.net (8.13.4/8.12.11) with ESMTP id l5TEt1LP051803 for ; Fri, 29 Jun 2007 10:55:02 -0400 (EDT) (envelope-from evert@rooftopsolutions.nl) Message-ID: <46851D8A.4000701@rooftopsolutions.nl> Date: Fri, 29 Jun 2007 10:56:10 -0400 User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) MIME-Version: 1.0 CC: internals@lists.php.net References: <468519DC.8060502@widescreen.ch> In-Reply-To: <468519DC.8060502@widescreen.ch> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] toString() and Object #ID From: evert@rooftopsolutions.nl (Evert | Rooftop) Hi Lars, In the meanwhile .. check out spl_object_hash Evert Lars Schultz wrote: > 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 >