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

From: Date: Fri, 12 Aug 2016 11:52:40 +0000
Subject: Bug #72818 [Opn]: 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-203209@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
 Updated by:         cmb@php.net
 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:   Windows 8.1
+Operating System:   Cygwin
 PHP Version:        5.6.24
 Block user comment: N
 Private report:     N

 New Comment:

Works as expected on native Windows 10; most likely a Cygwin issue.


Previous Comments:
------------------------------------------------------------------------
[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


Thread (4 messages)

« previous php.bugs (#203209) next »