-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant delete file #127
Comments
I cannot reproduce your issue with the following code:
Can you provide more details about the environment in which the error is occuring ? |
I'm running the php code inside vagrant machine Host : Windows 10 I'm pretty sure its somehow related to zippy not releasing file pointer to the open file. |
Maybe the ZIP process is not closed correctly on Windows platforms. I will try to reproduce in the same env as yours. |
I solved this issue setting $archive to null before the unlink() call: // ...
$archive->extract(__DIR__ . '/extract');
$archive = null;
unlink($archivePath); |
Is there a way to close the file that zippy had open?
The text was updated successfully, but these errors were encountered: