Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30387 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84860 invoked by uid 1010); 1 Jul 2007 13:45:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 84845 invoked from network); 1 Jul 2007 13:45:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jul 2007 13:45:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.94.56 as permitted sender) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Linux 2.6 Received: from [85.214.94.56] ([85.214.94.56:40431] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/E3-32240-C00B7864 for ; Sun, 01 Jul 2007 09:45:49 -0400 Received: from [192.168.2.102] (p50864220.dip.t-dialin.net [80.134.66.32]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id 490511B3611; Sun, 1 Jul 2007 15:45:45 +0200 (CEST) Date: Sun, 1 Jul 2007 15:45:38 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <585221804.20070701154538@marcus-boerger.de> To: "Pavel Shevaev" CC: "Sebastian Bergmann" , internals@lists.php.net In-Reply-To: References: <468519DC.8060502@widescreen.ch> <4685785E.5010709@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] toString() and Object #ID From: helly@php.net (Marcus Boerger) Hello Pavel, technically object id is neither what you get nor what you want. It is not unique and thus not helpfull and we have no intention to ever provide a function to access it. See mail archieve for reference on why we won't. Also the function resides in extension SPL so correctly it is prefixed with 'spl_'. Furthermore it is no engine specific function but an object oriented programming specific one. So SPL indeed is a very good place for it. Lastly the function per design hashes the unique input it gives as we do not want to make it more complex than necessary or give you stuff that leads to missuse. Again see mail archive for why. That said the name appears to be the best option already. marcus Sunday, July 1, 2007, 1:42:02 PM, you wrote: >> >> SPL is "in the core" AFAIAC. > I really want to hope it will be in PHP6. Still IMHO get_object_id > sounds much better than spl_object_hash and it will be much easier(and > more logical) to locate this function in "Class/Object Functions" > section of documentation than in SPL... > -- > Best regards, Pavel Best regards, Marcus