diff options
author | Martijn Otto <martijn.otto@copernica.com> | 2016-05-25 11:34:35 +0200 |
---|---|---|
committer | Martijn Otto <martijn.otto@copernica.com> | 2016-05-25 11:34:35 +0200 |
commit | 648486baabbc0b03dd0effb3be231ee5139bc50f (patch) | |
tree | a05cfc030712c4151aef7607ac5ffe58da456a9f /zend/hashiterator.h | |
parent | 58c62d8ad90d8296737a2f6d70d89f3adf9de714 (diff) |
Fix move constructor Value and fix the hash iterator
Diffstat (limited to 'zend/hashiterator.h')
-rw-r--r-- | zend/hashiterator.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zend/hashiterator.h b/zend/hashiterator.h index 357ffa6..ccc7d30 100644 --- a/zend/hashiterator.h +++ b/zend/hashiterator.h @@ -223,6 +223,10 @@ private: */ bool invalidate() { + // set position to be one after the end + zend_hash_internal_pointer_end_ex(_table, &_position); + zend_hash_move_forward_ex(_table, &_position); + // no longer valid _valid = false; |