Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30452 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16249 invoked by uid 1010); 4 Jul 2007 19:27:23 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 16234 invoked from network); 4 Jul 2007 19:27:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jul 2007 19:27:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.114 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.114 unknown Windows 2000 SP4, XP SP1 Received: from [63.205.162.114] ([63.205.162.114:30476] helo=us-ex1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A2/83-25128-994FB864 for ; Wed, 04 Jul 2007 15:27:22 -0400 Received: from [127.0.0.1] ([192.168.17.19]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 4 Jul 2007 12:27:18 -0700 Message-ID: <468BF494.3090205@zend.com> Date: Wed, 04 Jul 2007 12:27:16 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Pavel Shevaev CC: Lars Schultz , internals@lists.php.net References: <468519DC.8060502@widescreen.ch> <4685785E.5010709@zend.com> <585221804.20070701154538@marcus-boerger.de> <468B8F91.2020109@widescreen.ch> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 04 Jul 2007 19:27:18.0217 (UTC) FILETIME=[55B9CB90:01C7BE71] Subject: Re: [PHP-DEV] toString() and Object #ID From: stas@zend.com (Stanislav Malyshev) >> The first is cleared before the second is instantiated. > > Oh, that clears everything, please ignore my previous post. Still, > don't you think this is a bit misleading? IMHO, new object should > always have the unique id(or hash in terms of spl)... That's a valid point, reusing IDs might be not a good idea. Not reusing them though might not help either - you have only so much IDs in long, so eventually it might happen that IDs from two objects that existed at different time coincide. spl_object_hash guarantees that no two hashes of two simultaneously existing objects are the same, but it would be very hard to guarantee that no objects that ever existed have the same hash. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com