The first is cleared before the second is instantiated.

Oh, that clears everything, please ignore my previous post. Still,
don't you think this is a bit misleading? IMHO, new object should
always have the unique id(or hash in terms of spl)...

That's a valid point, reusing IDs might be not a good idea. Not reusing them though might not help either - you have only so much IDs in long, so eventually it might happen that IDs from two objects that existed at different time coincide. spl_object_hash guarantees that no two hashes of two simultaneously existing objects are the same, but it would be very hard to guarantee that no objects that ever existed have the same hash.
--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED]   http://www.zend.com/
(408)253-8829   MSN: [EMAIL PROTECTED]

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

Reply via email to