Ne-Lexa / php-zip

PhpZip is a php-library for extended work with ZIP-archives.
MIT License
491 stars 60 forks source link

Failed to unzip a file. #50

Open ImNotDeveloper opened 4 years ago

ImNotDeveloper commented 4 years ago

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 commented 4 years ago

See php error log.

Try:

$directory = __DIR__ . '/resources/test';
ImNotDeveloper commented 4 years ago

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

Ne-Lexa commented 4 years ago

Try cli mode and check the error log.