- Patch #381306 by plach: closing file handler to avoid problems on certain systems.

merge-requests/26/head
Dries Buytaert 2009-03-10 09:47:42 +00:00
parent 4ac090eb54
commit e7c7ee32a2
1 changed files with 1 additions and 0 deletions

View File

@ -834,6 +834,7 @@ function file_unmanaged_delete_recursive($path) {
$entry_path = $path . '/' . $entry;
file_unmanaged_delete_recursive($entry_path);
}
$dir->close();
return rmdir($path);
}
return file_unmanaged_delete($path);