Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23894 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2423 invoked by uid 1010); 3 Jun 2006 22:12:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 2408 invoked from network); 3 Jun 2006 22:12:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jun 2006 22:12:40 -0000 X-PHP-List-Original-Sender: jasper@album.co.nz X-Host-Fingerprint: 210.55.31.88 mail.album.co.nz Linux 2.5 (sometimes 2.4) (4) Received: from ([210.55.31.88:35475] helo=mail.album.co.nz) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 71/42-49656-75902844 for ; Sat, 03 Jun 2006 18:12:39 -0400 Received: from mail.album.co.nz (www.album.co.nz [127.0.0.1]) by mail.album.co.nz (Postfix) with ESMTP id CD4F2D171; Sun, 4 Jun 2006 10:12:33 +1200 (NZST) X-Spam-Checker-Version: SpamAssassin 3.1.1-gr0 (2006-03-10) on www.album.co.nz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable version=3.1.1-gr0 Received: from [192.168.0.9] (219-89-242-171.adsl.xtra.co.nz [219.89.242.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.album.co.nz (Postfix) with ESMTP id 549B04E78; Sun, 4 Jun 2006 10:12:33 +1200 (NZST) Message-ID: <4482094E.3000002@album.co.nz> Date: Sun, 04 Jun 2006 10:12:30 +1200 Organization: Album Limited User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Gwynne CC: internals@lists.php.net References: <795156743.20060603134212@marcus-boerger.de> <18CE805D-C032-4B64-950A-119E46287AF5@prohost.org> <4481B92E.2030802@lerdorf.com> <4481C354.10207@lerdorf.com> <4AC4FA24-6E74-492A-A3CF-DD75CF26390C@skytag.com> In-Reply-To: <4AC4FA24-6E74-492A-A3CF-DD75CF26390C@skytag.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Missing __toString() part From: jasper@album.co.nz (Jasper Bryant-Greene) -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Gwynne wrote: > I'm new to this list, so I apologize if I'm out of line in commenting > here, but it's my opinion that the advantages offered by a __hash() > magic function would outweigh the inevitable complexity and issues > involved. I imagine that it would be a strict semantic: If the class of > the object being indexed into the array doesn't define a magic __hash() > function, it would be a warning or even fatal error; no attempt > would/should be made to calculate a hash based on anything other than > what the object is willing to call itself. I would imagine that __hash() or whatever it is called would be defined on all objects and implemented internally in PHP, and would simply generate some internal hash that is unique for all objects. - -- Jasper Bryant-Greene General Manager Album Limited http://www.album.co.nz/ 0800 4 ALBUM jasper@album.co.nz 021 708 334 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (MingW32) iD8DBQFEgglOFfAeHhDzT4gRA2JtAKC3rkHI6QGo5yYQyHBbuZzG068D6wCgqej3 QqtgAcCeC5qo8ja2oCB4aUw= =2C/T -----END PGP SIGNATURE-----