Skip to content

Fixed bug #55701: GlobIterator throws LogicException#1880

Closed
axiac wants to merge 1 commit intophp:masterfrom
axiac:bug-55701
Closed

Fixed bug #55701: GlobIterator throws LogicException#1880
axiac wants to merge 1 commit intophp:masterfrom
axiac:bug-55701

Conversation

@axiac
Copy link
Contributor

@axiac axiac commented Apr 21, 2016

GlobIterator throws LogicException with message 'The parent constructor was not called' when the glob expression passed to the constructor doesn't match any file.

GlobIterator throws LogicException with message 'The parent constructor was not called'
on its first operation when the glob expression doesn't match any file.
It also throws on the first operation after the iteration completes, when the glob expression
matches some files.
@php-pulls
Copy link

Comment on behalf of cmb at php.net:

Cherry-picked to PHP-5.6 and merged upwards.

Thanks for the PR that solves a long standing issue, Valentin, and for the comprehensive and elegant regression test.

@php-pulls php-pulls closed this Jul 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants