Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30477 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57997 invoked by uid 1010); 6 Jul 2007 03:59:21 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 57981 invoked from network); 6 Jul 2007 03:59:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jul 2007 03:59:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain l-i-e.com from 67.139.134.202 cause and error) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:1920] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8B/14-26602-81EBD864 for ; Thu, 05 Jul 2007 23:59:20 -0400 Received: (qmail 91059 invoked by uid 98); 6 Jul 2007 03:59:24 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.01 (clamdscan: 0.88.7/3603. Clear:RC:1(127.0.0.1):. Processed in 0.079936 secs); 06 Jul 2007 03:59:24 -0000 Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 6 Jul 2007 03:59:24 -0000 Received: from 24.1.37.132 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Thu, 5 Jul 2007 22:59:24 -0500 (CDT) Message-ID: <2187.24.1.37.132.1183694364.squirrel@www.l-i-e.com> In-Reply-To: References: <468519DC.8060502@widescreen.ch> <4685785E.5010709@zend.com> <585221804.20070701154538@marcus-boerger.de> Date: Thu, 5 Jul 2007 22:59:24 -0500 (CDT) To: "Pavel Shevaev" Cc: "Marcus Boerger" , "Sebastian Bergmann" , internals@lists.php.net Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] toString() and Object #ID From: ceo@l-i-e.com ("Richard Lynch") On Sun, July 1, 2007 2:18 pm, Pavel Shevaev wrote: > $ php -r "class Foo{};$foo = new Foo();var_dump($foo);" > object(Foo)#1 (0) { > } > > What I actually need, not the object hash but simply its unique id. According to Marcus, it's NOT unique. But I can see that for debugging, it would be very very very useful to have a correctly named function which returns this number, whatever it is, even if it's not an ID. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?