Bug #72818 [Com]: PHP warning: ZipArchive::close(): Renaming temporary file failed: No such file

From: Date: Thu, 15 Feb 2018 07:41:49 +0000
Subject: Bug #72818 [Com]: PHP warning: ZipArchive::close(): Renaming temporary file failed: No such file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213967@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72818&edit=1 ID: 72818 Comment by: small75 at list dot ru Reported by: starrychloe at oliveyou dot net Summary: PHP warning: ZipArchive::close(): Renaming temporary file failed: No such file Status: Open Type: Bug Package: Zip Related Operating System: Cygwin PHP Version: 5.6.24 Block user comment: N Private report: N New Comment: Hi! Same problem on Windows 10 Pro 1709 XAMPP for Windows PHP Version 5.6.31 Apache/2.4.26 (Win32) OpenSSL/1.0.2l PHP/5.6.31 PHP Warning: ZipArchive::close(): Renaming temporary file failed: No such file or directory in Previous Comments: ------------------------------------------------------------------------ [2016-12-28 11:48:23] pharscape at gmail dot com On Windows 10 I found that if you add a delay between the addFile() and close() this <random> error disappears. ------------------------------------------------------------------------ [2016-08-12 11:52:39] cmb@php.net Works as expected on native Windows 10; most likely a Cygwin issue. ------------------------------------------------------------------------ [2016-08-12 03:02:58] starrychloe at oliveyou dot net Description: ------------ Cannot create a zip file. PHP warning: ZipArchive::close(): Renaming temporary file failed: No such file or directory No search results. https://duckduckgo.com/?q=PHP+warning%3A+ZipArchive%3A%3Aclose()%3A+%22Renaming+temporary+file+failed%3A+No+such+file+or+directory%22&ia=web http://stackoverflow.com/questions/38886193/php-ziparchiveclose-renaming-temporary-file-failed-no-such-file-or-direct Cygwin 2.5.2 Windows 8.1. PHP 5.6.24 (cli) (built: Jul 22 2016 03:53:28) Test script: --------------- Psy Shell v0.7.2 (PHP 5.6.24 — cli) by Justin Hileman >>> $zip = new ZipArchive() => ZipArchive {#185 +"status": 0, +"statusSys": 0, +"numFiles": 0, +"filename": "", +"comment": "", } >>> $zip->open('/tmp/tmp.zip', ZipArchive::CREATE) => true >>> $zip->addFile('/tmp/tmp.txt') => true >>> $zip->close() PHP warning: ZipArchive::close(): Renaming temporary file failed: No such file or directory on line 1 >>> The /tmp/tmp.txt file exists. Expected result: ---------------- I expect it to create the zip file without warning. Actual result: -------------- PHP warning: ZipArchive::close(): Renaming temporary file failed: No such file or directory on line 1 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72818&edit=1

« previous php.bugs (#213967) next »