Re: [PHP-DEV] Generators in PHP

2012-06-08 Thread Nikita Popov
On Wed, Jun 6, 2012 at 12:20 PM, Ivan Enderlin @ Hoa wrote: > In addition to Gustavo's remarks, I wonder how the GC would collect a > Generator object that is not use anymore (especially with a referenced > yield). Does it fit to the current CG strategy or do we need an extra > strategy? I would n

Re: [PHP-DEV] Generators in PHP

2012-06-08 Thread Nikita Popov
On Thu, Jun 7, 2012 at 10:46 AM, Gustavo Lopes wrote: > I mean how do you deal with "return $foo" in the body of the generator? Does > it work like a final yield? Is the return value ignored? Currently there will be a fatal error if return statements (with values) are used in the generator. In the

Re: [PHP-DEV] Generators in PHP

2012-06-08 Thread Gustavo Lopes
On Fri, 8 Jun 2012 13:24:49 +0200, Nikita Popov wrote: Are you planning on any internal API for functions to implement generators (though I really haven't thought how that would work)? I don't think that this is possible. Generators require that the execution context is suspended in some way an

Re: [PHP-DEV] Generators in PHP

2012-06-08 Thread Ivan Enderlin @ Hoa
Hi Nikita, On 08/06/12 13:16, Nikita Popov wrote: On Wed, Jun 6, 2012 at 12:20 PM, Ivan Enderlin @ Hoa wrote: In addition to Gustavo's remarks, I wonder how the GC would collect a Generator object that is not use anymore (especially with a referenced yield). Does it fit to the current CG strat

Re: [PHP-DEV] Your Amazon.com Kindle e-book order confirmation.

2012-06-08 Thread Kris Craig
Wow, somebody has an odd sense of humor lol. Whoever you are, enjoy your new book! In case anyone was wondering, here's the Amazon description for this book: "Daughter of a cold, controlling mother and an anonymous donor, studious, obedient Elizabeth finally let loose one night, drinking too muc

[PHP-DEV] Static library binding

2012-06-08 Thread Robert Eisele
Hi, I have a kind of stupid question. I run PHP inside a fpm chroot jail for a lot of vhosts, each vhost with it's own pool. Unfortunatley, I can't connect to remote domains neither via the native file api (assumed allow_url_fopen is on) nor via curl. I don't want to copy all the libs into the jai

Re: [PHP-DEV] Static library binding

2012-06-08 Thread Rasmus Lerdorf
On 06/08/2012 11:38 PM, Robert Eisele wrote: > Hi, > > I have a kind of stupid question. I run PHP inside a fpm chroot jail for a > lot of vhosts, each vhost with it's own pool. Unfortunatley, I can't > connect to remote domains neither via the native file api (assumed > allow_url_fopen is on) nor