Re: Re: Fix for bug #28325

From: Date: Thu, 01 Jul 2004 18:06:10 +0000
Subject: Re: Re: Fix for bug #28325
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-10863@lists.php.net to get a copy of this message
This is the new one. Hope it is ready to commit this time. http://www.voltex.jp/patches/bug28325-preliminary-20040701.patch.diff Two untidy bitshifts are intended to form an atomic bit rotation and are somewhat necessary for the uniqueness of the hash value. At least 31 object handles of the same class can rarely be recognised wrongly with this code as long as blk (or mmap) call is sane and it properly maps the physical memory to the VM space. Moriyoshi On 2004/07/01, at 16:03, Moriyoshi Koizumi wrote:
On 2004/07/01, at 14:25, Andi Gutmans wrote:
Hi Moriyoshi, The object handle is not a unique identifier. Different object types (e.g. PHP objects, SimpleXML objects) can have the same object handle. The real unique identifier is object handle + object handlers array or more useful in your case, possibly class name and object handle.
Thanks for the advice. So, will object handle + the VM address to the class entry suffice either? Moriyoshi -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.internals (#10863) next »