Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Catch LogicException for Rewind and fix CP errors #4154

Closed
wants to merge 1 commit into from

Conversation

mvriel
Copy link
Contributor

@mvriel mvriel commented Mar 30, 2013

The rewind method is, as the valid() method, affected by an issue
with the GlobIterator where it throws a LogicException if the dataset
is empty (https://bugs.php.net/bug.php?id=55701).

This exception should be caught and correctly returned as this will
interfere with foreach statements at the invoker.

In addition to the above have several copy-paste errors in the
DocBlocks been fixed.

The rewind method is, as the valid() method, affected by an issue
with the GlobIterator where it throws a LogicException if the dataset
is empty (https://bugs.php.net/bug.php?id=55701).

This exception should be caught and correctly returned as this will
interfere with foreach statements at the invoker.

In addition to the above have several copy-paste errors in the 
DocBlocks been fixed.
@mvriel
Copy link
Contributor Author

mvriel commented Mar 30, 2013

The failed travis build is not due to a failed unit test but some weirdness in the 5.3.3 build

@ghost ghost assigned weierophinney Apr 12, 2013
weierophinney added a commit that referenced this pull request Apr 12, 2013
@weierophinney
Copy link
Member

This actually applies against master as well, so I took the liberty of cherry-picking the commit to ensure it makes it into 2.1.5 as well.

Thanks, Mike!

weierophinney added a commit to zendframework/zend-cache that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-cache that referenced this pull request May 15, 2015
@mvriel mvriel deleted the patch-1 branch January 1, 2018 17:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants