Pulp A Different Class Ziparchive Not Found

Pulp A Different Class Ziparchive Not Found 7,0/10 798votes

With PHP 5.6+, you may come up with theses errors. Warning: Unknown: Cannot destroy the zip context in Unknown on line 0 Warning: ZipArchive::close(): Can't remove file: No such file or directory in xxxx.php on line xx Examples Warning: Unknown: Cannot destroy the zip context in Unknown on line 0 open ( '51-n.com.zip', ZipArchive:: CREATE ZipArchive:: OVERWRITE );?>Warning: ZipArchive::close(): Can't remove file: No such file or directory in xxxx.php on line xx open ( '51-n.com.zip', ZipArchive:: CREATE ZipArchive:: OVERWRITE ); $za ->close ();?>It happens when the zip archive is empty. Citrus there. Your zip archive will not be saved on disk unless it has at least one file. What's more, when ZipArchive::OVERWRITE is applied, if there exists a file with the same name, it will be removed after ZipArchive::open() is called.

Give More Feedback