Skip to content

Conversation

@sjparkinson
Copy link
Contributor

I came across this case when implementing #14.

Before defaulting the $queue property to an empty array the following error occurred:

InvalidArgumentException: Passed variable is not an array or object, using empty array instead

Now we get an OutOfBoundsException from the foreach call in AbstractAcknowledgementHandler.

Apparently LimitIterator is throwing the exception, you can see the source in hhvm: https://github.com/facebook/hhvm/blob/master/hphp/system/php/spl/iterators/LimitIterator.php#L106-L110

@sjparkinson sjparkinson force-pushed the array-adapter-out-of-bounds branch from 468c343 to 1fa3ec4 Compare August 18, 2015 16:35
@sjparkinson sjparkinson force-pushed the array-adapter-out-of-bounds branch from 1fa3ec4 to e56aa22 Compare August 18, 2015 17:09
@sjparkinson sjparkinson force-pushed the array-adapter-out-of-bounds branch from e56aa22 to 4cb669f Compare August 18, 2015 17:20
@sjparkinson sjparkinson force-pushed the master branch 2 times, most recently from d626d09 to 97cab30 Compare August 18, 2015 17:29
@sjparkinson sjparkinson force-pushed the array-adapter-out-of-bounds branch 2 times, most recently from a719363 to f67df51 Compare August 20, 2015 15:27
@sjparkinson sjparkinson force-pushed the array-adapter-out-of-bounds branch from f67df51 to 42e8b07 Compare August 21, 2015 15:59
jakewright added a commit that referenced this pull request Aug 21, 2015
ArrayAdapter throws OutOfBoundsException when empty
@jakewright jakewright merged commit 150f49d into master Aug 21, 2015
@jakewright jakewright deleted the array-adapter-out-of-bounds branch August 21, 2015 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants