Re: [VOTE] Weak References

From: Date: Wed, 03 Aug 2011 19:22:54 +0000
Subject: Re: [VOTE] Weak References
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Thanks Etienne,

I was waiting for this for a while! I wrote a blog post how to get
best benefits from weak references:
http://blog.juzna.cz/2011/08/weak-references-in-php/
Perhaps this will help showing people what are they good for.

And thanks to PECL extension I hope we can start using them in my
company very soon in our extension of Zend_Db.

Jan Dolecek
[email protected]



On Wed, Aug 3, 2011 at 3:29 PM, Etienne Kneuss <[email protected]> wrote:
> Hi,
>
> http://pecl.php.net/package/Weakref has been
> created, and the
> standalone code should compile fine (I checked for 5_3 only but
> everything should be smooth for 5_4/trunk)
>
> The next planned addition is a StrongRef class, following the exact
> same interface as WeakRef only that it is always valid and get()
> always return the ref. The reason for it is that code can switch
> between the two transparently.
>
> Best,
>
> On Wed, Aug 3, 2011 at 14:49, Hannes Landeholm <[email protected]> wrote:
>> Good idea. I will see what I can do when I get time.
>>
>> ~Hannes
>>
>> On 3 August 2011 12:32, Pierre Joye <[email protected]> wrote:
>>> hi Hannes,
>>>
>>> I would suggest to still update the RFC with the various very
>>> instructive comments and example use cases you use in this thread.
>>> Doing the same in the long run should help as well to understand the
>>> goals, implementations, etc., for the pecl users or for the 2nd
>>> attempt to get it in the core, if still desired.
>>>
>>> Cheers,
>>>
>>> On Wed, Aug 3, 2011 at 12:25 PM, Hannes Landeholm <[email protected]> wrote:
>>>> Hello,
>>>>
>>>> We had a healthy discussion around WR and I have been able to express
>>>> my concerns. The consensus is clearly to put it in a PECL extension so
>>>> I think this discussion should move on to the practical matters of
>>>> doing this. I suggest aborting the vote and changing the RFC state to
>>>> something like "Transfered to PECL".
>>>>
>>>> ~Hannes
>>>>
>>>> --
>>>> PHP Internals - PHP Runtime Development Mailing List
>>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Pierre
>>>
>>> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>>>
>>
>> --
>> PHP Internals - PHP Runtime Development Mailing List
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
>
> --
> Etienne Kneuss
> http://www.colder.ch
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Thread (69 messages)

« previous php.internals (#54321) next »