Lars Schultz wrote:
> I know that a lot of you may say: Why do need to do that?...and I'd have
> to think for 3 days and then write for 4 days and would give up. It
> seems like a nice solution to me and if any of you have an idea as to
> how I could implement this differently, please feel free to point it out
> to me.

Perhaps you could use your own reference counting?
Keep your "real" objects in private array and instead of returning them return 
a simple object which would forward all methods and properties by 
__get/__set/__call. The constructor would increase your internal refcount by 
one, destructor would decrease it.


-- 
Paweł Stradomski

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

Reply via email to