Re: [VOTE] Weak References
From: Lars Schultz Date: Sat, 03 Sep 2011 15:14:04 +0000 Subject: Re: [VOTE] Weak References References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
Am 03.09.2011 13:56, schrieb Etienne Kneuss:Indeed, I planned to implement that as well, I haven't had the time to do it yet though. It should happen in the following weeks.Not to keep you from doing this...but couldn't that easily be solved by using a simple associative php array like this: $pseudoWeakMap = array(); $pseudoWeakMap[spl_object_hash($obj)] = new WeakReference($obj); or did I misunderstand the concept? I hope I'll have a chance to use WeakReferences soon in my project;)
Thread (69 messages)
« previous | php.internals (#55156) | next » |
---|