Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30410 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9997 invoked by uid 1010); 2 Jul 2007 18:16:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 9982 invoked from network); 2 Jul 2007 18:16:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2007 18:16:27 -0000 Authentication-Results: pb1.pair.com header.from=planetbeing@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=planetbeing@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.204.231 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: planetbeing@gmail.com X-Host-Fingerprint: 72.14.204.231 qb-out-0506.google.com Received: from [72.14.204.231] ([72.14.204.231:8188] helo=qb-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 29/CC-24153-9F049864 for ; Mon, 02 Jul 2007 14:16:26 -0400 Received: by qb-out-0506.google.com with SMTP id e11so2480831qbe for ; Mon, 02 Jul 2007 11:16:23 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:cc:references:in-reply-to:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-mailer:thread-index:content-language; b=h2ON9br17+oJ5hYS90l+rPVHfHMkMaC/VrdNyGtFNmOmFxYJEEydLYBlMSC3rrtQAduGJr4Ge2H0UZpAk5F2aIbhjXS6Sv++43wJNKLr8mrn5+aKlxOsWwfJ34BOstU6AHYZwd06dCxfrK47R7rQhWwE+VVbLkX/2roD3Sl14uY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:cc:references:in-reply-to:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-mailer:thread-index:content-language; b=QJ8ZcfkPnFGJNGh1H1XXQru1fa7bno37eJ212KtJjkp4env2cjeVP+nO+wi6XiQ8WFx5fLyTrQG1dfAbgPQonCAujgPqUkQqdpcfrlLcF4MkCxdyNYJHElyntsJvS0JzzwMbcecIlfz2vCAUbRRa3Atxcqa1Y9lPzt2GtTTKTrk= Received: by 10.140.141.15 with SMTP id o15mr1514536rvd.1183400182705; Mon, 02 Jul 2007 11:16:22 -0700 (PDT) Received: from DavidPC ( [24.21.139.96]) by mx.google.com with ESMTP id b34sm19854863rvf.2007.07.02.11.16.21 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 02 Jul 2007 11:16:21 -0700 (PDT) To: "'Stanislav Malyshev'" , "'Pavel Shevaev'" Cc: "'Sebastian Bergmann'" , References: <468519DC.8060502@widescreen.ch> <585221804.20070701154538@marcus-boerger.de> <002701c7bc28$8279c2c0$876d4840$@com> <4688808A.7030706@zend.com> <46893931.1020000@zend.com> In-Reply-To: <46893931.1020000@zend.com> Date: Mon, 2 Jul 2007 11:16:09 -0700 Message-ID: <000101c7bcd5$11b66310$35232930$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ace80Hs68knfQTm8RUiGz6bVtRjmWAABHCMA Content-Language: en-us Subject: RE: [PHP-DEV] toString() and Object #ID From: planetbeing@gmail.com ("David") (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, and perhaps make an alias to it named object_get_id so other people don't run into this confusion in the future. 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. David