Unset DirectoryIterator in the FileBackend
[lhc/web/wiklou.git] / includes / filebackend / FileBackendStore.php
index 43e6cb3..0f435a3 100644 (file)
@@ -507,6 +507,7 @@ abstract class FileBackendStore extends FileBackend {
                                        $subDir = $params['dir'] . "/{$subDirRel}"; // full path
                                        $status->merge( $this->doClean( array( 'dir' => $subDir ) + $params ) );
                                }
+                               unset( $subDirsRel ); // free directory for rmdir() on Windows (for FS backends)
                        }
                }