We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7dd3de5 + dd5692c commit 54b1059Copy full SHA for 54b1059
Iterator/RecursiveDirectoryIterator.php
@@ -137,6 +137,11 @@ public function isRewindable()
137
return $this->rewindable;
138
}
139
140
+ // workaround for an HHVM bug, should be removed when https://github.com/facebook/hhvm/issues/7281 is fixed
141
+ if ('' === $this->getPath()) {
142
+ return $this->rewindable = false;
143
+ }
144
+
145
if (false !== $stream = @opendir($this->getPath())) {
146
$infos = stream_get_meta_data($stream);
147
closedir($stream);
0 commit comments