Skip to content
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

Failed to unzip a file. #50

Open
ImNotDeveloper opened this issue Apr 9, 2020 · 3 comments
Open

Failed to unzip a file. #50

ImNotDeveloper opened this issue Apr 9, 2020 · 3 comments

Comments

@ImNotDeveloper
Copy link

Good Morning.
I have recently been testing this library and I found it very good, but I have a small error decompressing my zip file.

I am working on a game server.

$directory = '/resources/test';
if(!is_dir($directory)){
mkdir($directory, 0755, true);
}
$zipFile = new \PhpZip\ZipFile();
$zipFile->openFile("test.zip");
$zip->extractTo($directory);
$zip->close();

The server only does not respond and shuts down.

@Ne-Lexa
Copy link
Owner

Ne-Lexa commented Apr 9, 2020

See php error log.

Try:

$directory = __DIR__ . '/resources/test';

@ImNotDeveloper
Copy link
Author

That is not the error, when I extract the files, the server shuts down and does not throw any error.

@Ne-Lexa
Copy link
Owner

Ne-Lexa commented Apr 9, 2020

Try cli mode and check the error log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants