added a comment about a workaround

This commit is contained in:
Fabien Potencier 2016-09-14 14:04:40 -07:00
parent 23cae581b8
commit b28cd81575
1 changed files with 1 additions and 0 deletions

View File

@ -137,6 +137,7 @@ class RecursiveDirectoryIterator extends \RecursiveDirectoryIterator
return $this->rewindable;
}
// workaround for an HHVM bug, should be removed when https://github.com/facebook/hhvm/issues/7281 is fixed
if ('' === $this->getPath()) {
return $this->rewindable = false;
}