diff --git a/laravel/cli/tasks/bundle/providers/provider.php b/laravel/cli/tasks/bundle/providers/provider.php index bdf3b8ce..bf6401f7 100644 --- a/laravel/cli/tasks/bundle/providers/provider.php +++ b/laravel/cli/tasks/bundle/providers/provider.php @@ -54,6 +54,7 @@ abstract class Provider { File::rmdir($work.'zip'); + $zip->close(); @unlink($target); } diff --git a/laravel/file.php b/laravel/file.php index 0346c83c..1cb33c00 100644 --- a/laravel/file.php +++ b/laravel/file.php @@ -94,7 +94,7 @@ class File { /** * Extract the file extension from a file path. - * + * * @param string $path * @return string */ @@ -273,8 +273,9 @@ class File { } } - if ($delete) rmdir($source); - + unset($items); + if ($delete) @rmdir($source); + return true; } @@ -306,6 +307,7 @@ class File { } } + unset($items); if ( ! $preserve) @rmdir($directory); }