Re: [PHP-DEV] [RFC] Weak References

2011-08-01 Thread Hannes Landeholm
Arguably the feature is already "popular". I have pointed this out many times before but many other major OO languages provides weak references natively. Read the introduction in the RFC. Pragmatically speaking (as a framework designer) you are unfortunately not so privileged on what PECL/PHP ext

[PHP-DEV] [VOTE] Weak References

2011-08-01 Thread Hannes Landeholm
Hello, Voting is now open for the weak references RFC. The RFC and patch can be found here: https://wiki.php.net/rfc/weakreferences You can vote here: https://wiki.php.net/rfc/weakreferences/vote I don't seem to be able to vote myself and I'm not sure if that's an error or not. Regards, Hanne

Re: [PHP-DEV] [VOTE] Weak References

2011-08-01 Thread guilhermebla...@gmail.com
Hi, I like this idea. But I'd like to ask something; maybe someone could please correct the Example section of RFC? Unfortunately, I cannot understand how it could work on "else" conditional block, because $obj is undefined. Cheers, On Mon, Aug 1, 2011 at 1:46 PM, Hannes Landeholm wrote: > Hell

Re: [PHP-DEV] [VOTE] Weak References

2011-08-01 Thread Hannes Landeholm
Sorry that this was unclear, $obj is defined in the comment that says "// compute $obj" Imagine a SQL query there or otherwise code that constructs $obj from an external data source. Regards, Hannes On 1 August 2011 20:27, guilhermebla...@gmail.com wrote: > Hi, > > I like this idea. But I'd l

Re: [PHP-DEV] [VOTE] Weak References

2011-08-01 Thread Hannes Landeholm
Hello, I would just like to remind you that the voting will take place for 7 more days so there are still time to discuss your concerns. If you find something confusing or have objections I would be very interested in hearing them and discussing that _before_ you vote as I have reminded you twice

Re: [PHP-DEV] [VOTE] Weak References

2011-08-01 Thread Pierre Joye
hi, You have to start a new thread to begin a vote, see the voting RFC. So everyone will see it. However, I feel like it is premature to vote on that one. For one, I'm not convinced by this feature yet. I'm not sure it is the right way to do it, or if it is actually needed. The more I look at it

Re: [PHP-DEV] segmentation fault

2011-08-01 Thread Tomas Brastavičius
Here is a corresponding bug report: https://bugs.php.net/bug.php?id=55339 Regards, Tomas Brastavičius > Hi! > > > I would like to ask if the following backtrace contains enough > > information to identify the bug ? Perhaps someone may identify from the > > backtrace a PHP function/code that cau

Re: [PHP-DEV] [VOTE] Weak References

2011-08-01 Thread Etienne Kneuss
Hello, On Mon, Aug 1, 2011 at 21:16, Pierre Joye wrote: > hi, > > You have to start a new thread to begin a vote, see the voting RFC. So > everyone will see it. > > However, I feel like it is premature to vote on that one. For one, I'm > not convinced by this feature yet. I'm not sure it is the r

Re: [PHP-DEV] [VOTE] Weak References

2011-08-01 Thread Hannes Landeholm
> However, I feel like it is premature to vote on that one. For one, I'm > not convinced by this feature yet. I'm not sure it is the right way to > do it, or if it is actually needed. Using weak references is the only way to design non caching references and the only way to correctly implement the

[PHP-DEV] [VOTE] Weak References

2011-08-01 Thread Hannes Landeholm
Hello, Voting is now open for the weak references RFC. The RFC and patch can be found here: https://wiki.php.net/rfc/weakreferences You can vote here: https://wiki.php.net/rfc/weakreferences/vote (This announcement was sent twice since the last announcement was merged with the existing thread i

Re: [PHP-DEV] [VOTE] Weak References

2011-08-01 Thread Adam Harvey
On Aug 2, 2011 2:50 AM, "Hannes Landeholm" wrote: > aharvey: I'm surprised you voted no since you seemed content with the > answers you got earlier. Do you have some special objection in mind? Sorry, I meant to send an e-mail last night explaining the -1 and completely forgot before I went to bed