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



-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to