Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30435 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37095 invoked by uid 1010); 4 Jul 2007 12:02:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 37068 invoked from network); 4 Jul 2007 12:02:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jul 2007 12:02:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=dz@bitxtender.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=dz@bitxtender.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain bitxtender.com from 80.237.132.12 cause and error) X-PHP-List-Original-Sender: dz@bitxtender.com X-Host-Fingerprint: 80.237.132.12 wp005.webpack.hosteurope.de Received: from [80.237.132.12] ([80.237.132.12:50678] helo=wp005.webpack.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 83/B0-30717-15C8B864 for ; Wed, 04 Jul 2007 08:02:27 -0400 Received: from [87.79.35.58] (helo=[192.168.0.164]); authenticated by wp005.webpack.hosteurope.de running ExIM using esmtpsa (TLSv1:RC4-SHA:128) id 1I63Ys-0005he-Fn; Wed, 04 Jul 2007 14:02:22 +0200 In-Reply-To: References: <468519DC.8060502@widescreen.ch> <4685785E.5010709@zend.com> <585221804.20070701154538@marcus-boerger.de> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: Cc: Marcus Boerger , Sebastian Bergmann , Pavel Shevaev Content-Transfer-Encoding: 7bit Date: Wed, 4 Jul 2007 14:02:19 +0200 To: internals internals X-Mailer: Apple Mail (2.752.2) X-bounce-key: webpack.hosteurope.de;dz@bitxtender.com;1183550547;81091248; Subject: Re: [PHP-DEV] toString() and Object #ID From: dz@bitxtender.com (=?ISO-8859-1?Q?David_Z=FClke?=) Am 01.07.2007 um 21:18 schrieb Pavel Shevaev: >> Again see mail archive for why. That said the name appears to be >> the best option already. > > Oh, yes, you're right spl_object_hash does its job and does it very > well, there's really no point rename it(or make an alias) into > object_get_id. I should have stated more clear what I think > object_get_id could actually be. Not quite. It creates a hash of an object, so two objects with the same data yield the same hashes: var_dump(spl_object_hash(new stdClass()), spl_object_hash(new stdClass ())); - David