Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23927 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61496 invoked by uid 1010); 4 Jun 2006 14:58:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 61481 invoked from network); 4 Jun 2006 14:58:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jun 2006 14:58:40 -0000 X-PHP-List-Original-Sender: andi@zend.com X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:35059] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id C2/2A-49656-F15F2844 for ; Sun, 04 Jun 2006 10:58:40 -0400 Received: (qmail 4358 invoked from network); 4 Jun 2006 14:58:11 -0000 Received: from localhost (HELO ANDI-NOTEBOOK.zend.com) (127.0.0.1) by localhost with SMTP; 4 Jun 2006 14:58:11 -0000 Message-ID: <7.0.1.0.2.20060604075725.03d77b20@zend.com> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Sun, 04 Jun 2006 07:58:34 -0700 To: Marcus Boerger Cc: internals@lists.php.net In-Reply-To: <1834492302.20060604165624@marcus-boerger.de> References: <795156743.20060603134212@marcus-boerger.de> <509342741.20060603183859@marcus-boerger.de> <7.0.1.0.2.20060603175211.02208a50@zend.com> <20060604030100.1093d2f9@pierre-u64> <7.0.1.0.2.20060603181129.0396fc18@zend.com> <44823B41.5000608@akbkhome.com> <44823C51.7040408@lerdorf.com> <64299052.20060604120852@marcus-boerger.de> <20060604135241.3beacb32@pierre-u64> <1853717276.20060604140317@marcus-boerger.de> <1912643046.20060604141822@marcus-boerger.de> <7.0.1.0.2.20060604071847.03b74850@zend.com> <1834492302.20060604165624@marcus-boerger.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Missing __toString() part From: andi@zend.com (Andi Gutmans) What extensions today have different objects with the same object ids (inside a certain class)? What do you mean it has nothing to do with hash? Don't understand what you mean. At 07:56 AM 6/4/2006, Marcus Boerger wrote: >Hello Andi, > > the classname has not make the id unique. In fact it has nothing to >do with a hash. > >best regards >marcus > >Sunday, June 4, 2006, 4:26:13 PM, you wrote: > > > I would suggest : > > a) Make sure $arr[(string)$obj] works (I see no reason for it not to). > > b) Look into how to support a unique identifier (-1 on a hash value). > > Two main questions are how this thing looks like, and whether it's > > explicit (you need to call some function/method to get it) or > > implicit (e.g. $arr[$obj]). > > > A Unique indentifier could look something like "Classname#Object id" > > e.g. "SimpleXMLElement#1". > > > Andi > > > P.S.-Yep, sticking to bullets keeps emails brief :) > > > > >Best regards, > Marcus