Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23921 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5478 invoked by uid 1010); 4 Jun 2006 12:05:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 5462 invoked from network); 4 Jun 2006 12:05:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jun 2006 12:05:57 -0000 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 66.249.92.175 ug-out-1314.google.com Linux 2.4/2.6 Received: from ([66.249.92.175:61900] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 8F/73-49656-4ACC2844 for ; Sun, 04 Jun 2006 08:05:57 -0400 Received: by ug-out-1314.google.com with SMTP id m2so1175643ugc for ; Sun, 04 Jun 2006 05:05:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KrCOLo9wxLQnwNCFt/WK4AzsAX5Am62DRIf9E4uoCwjlBTpkXw901OFwY653dnl1vq5yMB1Fmio73OVkTl/TXBg4X1yjHzXA6CuNgPJ7kf1uJR6Yh9rMaW7lPrg7Lgu8lLUDvqOY28c2LvgARZmRh7DSIjpFqDNaPPTLVBmCtWA= Received: by 10.66.252.4 with SMTP id z4mr2412326ugh; Sun, 04 Jun 2006 05:05:53 -0700 (PDT) Received: by 10.66.220.11 with HTTP; Sun, 4 Jun 2006 05:05:52 -0700 (PDT) Message-ID: Date: Sun, 4 Jun 2006 14:05:52 +0200 To: "Marcus Boerger" Cc: internals@lists.php.net In-Reply-To: <1853717276.20060604140317@marcus-boerger.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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> Subject: Re: [PHP-DEV] Missing __toString() part From: pierre.php@gmail.com (Pierre) On 6/4/06, Marcus Boerger wrote: > Adding a function hash_from_object() or spl_hash_from object() to ease > > the generations of hashes is indeed a good idea. There is no impact in > > the objects managements and people are free to use it or not (no magic > > default behaviors). > > Hence i wrote "For PHP 5.2 we **could** think"... Yes, and what's the point of this answer? You should have read my mail as: -1 for any magic changes +1 to keep $a[(string)$o] -1 for __toHash/whatever will be the name of this method +0 for an extra (and extern) function to get an unique hash of an object --Pierre