Re: PHP Object-Caching and Reference Counting

From: Date: Fri, 19 Jan 2007 20:22:38 +0000
Subject: Re: PHP Object-Caching and Reference Counting
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-27545@lists.php.net to get a copy of this message
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

« previous php.internals (#27545) next »