Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79288 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78442 invoked from network); 28 Nov 2014 19:47:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2014 19:47:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=bostjan@a2o.si; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bostjan@a2o.si; sender-id=pass Received-SPF: pass (pb1.pair.com: domain a2o.si designates 78.47.12.76 as permitted sender) X-PHP-List-Original-Sender: bostjan@a2o.si X-Host-Fingerprint: 78.47.12.76 portkey.s.itsis.si Received: from [78.47.12.76] ([78.47.12.76:38823] helo=portkey.s.itsis.si) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CA/42-59154-A61D8745 for ; Fri, 28 Nov 2014 14:47:54 -0500 Received: from undisclosed (undisclosed [127.0.0.254]) (Authenticated sender: undisclosed) by portkey.s.itsis.si (Postfix) with ESMTPSA id 569ED80069 for ; Fri, 28 Nov 2014 19:47:51 +0000 (UTC) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.98.4 at portkey Received: by mail-ie0-f176.google.com with SMTP id tr6so6487611ieb.21 for ; Fri, 28 Nov 2014 11:47:50 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.50.77.110 with SMTP id r14mr34643997igw.19.1417204070309; Fri, 28 Nov 2014 11:47:50 -0800 (PST) Received: by 10.50.35.1 with HTTP; Fri, 28 Nov 2014 11:47:50 -0800 (PST) In-Reply-To: <1417154655.2495.5.camel@localhost.localdomain> References: <1417154655.2495.5.camel@localhost.localdomain> Date: Fri, 28 Nov 2014 20:47:50 +0100 Message-ID: To: Joe Watkins Cc: PHP Internals List Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] New function: spl_object_id() or spl_object_handle() From: bostjan@a2o.si (Bostjan Skufca) On 28 November 2014 at 07:04, Joe Watkins wrote: > > I don't think so, there is talk of removing object handles in 7. Could you point me to a discussion about this? Tnx. > Even if we intended to keep object handles, this leaks implementation > details that we don't really want leaked. I understand your concern, but I think being able to uniquely identify objects should be PHP feature and not a leaked implementation detail. Looking into other languages: - ruby has obj.object_id - python has id(obj) which is functionally equal to spl_object_hash(), I can not find anything about unique ID for now - perl has Object::ID module b.