Re: Re: Generators in PHP
| From: | Nikita Popov | Date: | Thu, 26 Jul 2012 15:17:58 +0000 |
| Subject: | Re: Re: Generators in PHP | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-61812@lists.php.net to get a copy of this message | ||
On Wed, Jul 25, 2012 at 11:00 PM, Jared Williams
<jared.williams1@ntlworld.com> wrote:
> Though here is seemingly another problem, though it could be within
> spl's MultipleIterator()
Thanks, this is fixed now (see
https://github.com/nikic/php-src/commit/268740d9848d435054ce73a8cfe36b2b732cd1f7).
It turned out that you have to implement the Iterator interface before
assigning the get_iterator handler.
Again, thanks for testing the patch and providing useful feedback :)
Nikita