Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30412 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15909 invoked by uid 1010); 2 Jul 2007 18:38:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 15893 invoked from network); 2 Jul 2007 18:38:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2007 18:38:05 -0000 Authentication-Results: pb1.pair.com header.from=antony@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=antony@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: antony@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from [212.25.124.162] ([212.25.124.162:49229] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/8D-24153-A0649864 for ; Mon, 02 Jul 2007 14:38:05 -0400 Received: (qmail 18175 invoked from network); 2 Jul 2007 18:38:00 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 2 Jul 2007 18:38:00 -0000 Message-ID: <46894607.3090102@zend.com> Date: Mon, 02 Jul 2007 22:37:59 +0400 User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: David CC: 'Stanislav Malyshev' , 'Pavel Shevaev' , 'Sebastian Bergmann' , internals@lists.php.net References: <468519DC.8060502@widescreen.ch> <585221804.20070701154538@marcus-boerger.de> <002701c7bc28$8279c2c0$876d4840$@com> <4688808A.7030706@zend.com> <46893931.1020000@zend.com> <000101c7bcd5$11b66310$35232930$@com> In-Reply-To: <000101c7bcd5$11b66310$35232930$@com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] toString() and Object #ID From: antony@zend.com (Antony Dovgal) On 02.07.2007 22:16, David wrote: > (Many apologies for the double e-mail. Ugh, I'm not used to hitting Reply To > All yet) > >> > I really don't want to be annoying but from the end user's POV >> > spl_object_hash sounds like a function which returns a hash but not >> an >> > identity. Any tiny chance it will be available as object_get_id in >> > PHP6? ;) >> >> It does give the hash, which is unique for each object. In which form >> would you expect object_get_id to return object's identity? PHP >> doesn't have a type of "tuple of C pointer and long integer" ;) > > Hmm. I think what Pavel is asking is just to make it clearer in the > documentation what spl_object_hash's purpose and workings are That's fine, the docu team would gladly accept any help and patches. > and perhaps > make an alias to it named object_get_id so other people don't run into this > confusion in the future. I'd like to avoid creating misleading aliases, which would not be usable on a shared hosting in the next 10 years anyway. > The name of spl_object_hash and the fact it is in the SPL and not in the > engine does lead one to believe that it might do more than simply hashing > the handler table and handle tuple. People might think it hashes the > properties as well. People won't think anything like that if we fix the documentation, so let's do it. -- Wbr, Antony Dovgal