Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30408 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92708 invoked by uid 1010); 2 Jul 2007 17:47:15 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92692 invoked from network); 2 Jul 2007 17:47:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2007 17:47:15 -0000 Authentication-Results: pb1.pair.com header.from=news@sea.gmane.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain m.gmane.org designates 80.91.229.2 as permitted sender) X-PHP-List-Original-Sender: php-php-dev@m.gmane.org X-Host-Fingerprint: 80.91.229.2 main.gmane.org Linux 2.5 (sometimes 2.4) (4) Received: from [80.91.229.2] ([80.91.229.2:36165] helo=ciao.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5B/DA-24153-12A39864 for ; Mon, 02 Jul 2007 13:47:13 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1I5PzR-00084A-KS for internals@lists.php.net; Mon, 02 Jul 2007 19:47:09 +0200 Received: from p5088497c.dip.t-dialin.net ([80.136.73.124]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Jul 2007 19:47:09 +0200 Received: from sb by p5088497c.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Jul 2007 19:47:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Mon, 02 Jul 2007 19:46:58 +0200 Lines: 12 Message-ID: References: <468519DC.8060502@widescreen.ch> <585221804.20070701154538@marcus-boerger.de> <002701c7bc28$8279c2c0$876d4840$@com> <4688808A.7030706@zend.com> <46893931.1020000@zend.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: p5088497c.dip.t-dialin.net User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) In-Reply-To: <46893931.1020000@zend.com> Sender: news Subject: Re: [PHP-DEV] toString() and Object #ID From: sb@sebastian-bergmann.de (Sebastian Bergmann) Stanislav Malyshev schrieb: > 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" ;) We could add a counter that gets incremented for each object that is created and associate that number with the object. Wouldn't that solve the problem (if there is one)? -- Sebastian Bergmann http://sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69