Hello Arnaud, Wednesday, July 23, 2008, 8:36:53 AM, you wrote:
> Hello Marcus, > On Wednesday 23 July 2008 01:16:14 Marcus Boerger wrote: >> Hello Arnaud, >> >> Tuesday, July 22, 2008, 11:23:47 AM, you wrote: >> >> > Hello, >> >> >> > Care to look into the MultipleIterator next? >> >> >> >> > That's done, for 5_3 [1] and HEAD [2]. >> > And a test [3][4] covering mostly all the cases. >> >> > [1] http://arnaud.lb.s3.amazonaws.com/MultipleIterator_5_3.patch >> > [2] http://arnaud.lb.s3.amazonaws.com/MultipleIterator_HEAD.patch >> > [3] http://arnaud.lb.s3.amazonaws.com/multiple_iterator_001_5_3.phpt >> > [4] http://arnaud.lb.s3.amazonaws.com/multiple_iterator_001_HEAD.phpt >> >> Great work once more. I just moved the stuff all into spl_observer.c to >> avoid increasing the amount of stuff that gets exported in the headers. >> I also did a few minor tweaks and cleanups, nothing important though. >> >> - setFlags parses directly into &intern->flags which is a long for that >> reason >> - added !EG(exception) for the loops, though I have another patch that will >> make exception handling better >> >> I've also upgraded you, you've got php-src access now, use it wisely :-) > Thanks :) I will try to not break everything ;) > I did not found anything about "Spl(Array|Index|Member)Reference" on the TODO, > are there any discussion on that ? Nope. My idea was to have an overloaded object that proxies writes to an Arraym an Index and so forth. When you write to such an instance than instead the saved reference would be written to. class SplArrayReference { function __construct(Array &$array, $index) { $this->array = &$array; $this->index = $index; } function __set($value) { $this->array[$this->index] = $value; } //...... } Where __set is the c-level zend_object_set_t set handler. Given its concept, structure and the fact that we have closures now, it would probably better to do those in pecl/Spl_Types. But I might be wrong in my assumtion that all of these can be done by closures anyway. Best regards, Marcus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php