php-zip icon indicating copy to clipboard operation
php-zip copied to clipboard

Failed to unzip a file.

Open ImNotDeveloper opened this issue 5 years ago • 3 comments

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.

ImNotDeveloper avatar Apr 09 '20 14:04 ImNotDeveloper

See php error log.

Try:

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

Ne-Lexa avatar Apr 09 '20 15:04 Ne-Lexa

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

ImNotDeveloper avatar Apr 09 '20 16:04 ImNotDeveloper

Try cli mode and check the error log.

Ne-Lexa avatar Apr 09 '20 16:04 Ne-Lexa