Unset DirectoryIterator in the FileBackend
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 16 Nov 2012 20:47:01 +0000 (21:47 +0100)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 16 Nov 2012 20:55:22 +0000 (12:55 -0800)
commit9e504dd8e66d6b7c8ad102602d0f718f209943de
tree50c2d01af8094d250f548eccc3f46a49f795ec85
parentc2bc0fcc27dba9605b855b9ddbb24c0212567110
Unset DirectoryIterator in the FileBackend

This is necessory to close all handlers on the directory and than it is
possible to rmdir the directory without a 'permission denied' on a
windows machine.

Corresponding unit test failure:
1) FileBackendTest::testRecursiveClean
Dir mwstore://localtesting/unittest-cont1/e/a no longer exists
(FSFileBackend).
Failed asserting that true matches expected false.

Change-Id: Ide58c6d0ec101bf0ddcd6b7414c51075fc28825b
includes/filebackend/FileBackendStore.php
tests/phpunit/includes/filebackend/FileBackendTest.php