Skip to content

Commit

Permalink
Fix shifting from PHPArray iterator.
Browse files Browse the repository at this point in the history
Courtesy of Christoph Otto
  • Loading branch information
bschmalhofer committed Mar 7, 2009
1 parent 3a345b6 commit a7e420c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pmc/phparray.pmc
Expand Up @@ -2493,7 +2493,8 @@ failures.

/* set the key's flags so get_x_keyed() knows when it's being called
* from an Iterator. */
PObj_get_FLAGS(key) = KEY_pipp_iterator_FLAG;
PObj_get_FLAGS(key) = KEY_pipp_iterator_FLAG | KEY_integer_FLAG;


/* Get the Iterator and ht->internalPointer in sync. */
bkt = ht->tableHead;
Expand Down

0 comments on commit a7e420c

Please sign in to comment.