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

From: Date: Fri, 12 Aug 2016 03:03:00 +0000
Subject: Bug #72818 [NEW]: PHP warning: ZipArchive::close(): Renaming temporary file failed: No such file
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203198@lists.php.net to get a copy of this message
From:             starrychloe at oliveyou dot net
Operating system: Windows 8.1
PHP version:      5.6.24
Package:          Zip Related
Bug Type:         Bug
Bug description:PHP warning:  ZipArchive::close(): Renaming temporary file failed: No such file

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 bug report at https://bugs.php.net/bug.php?id=72818&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=72818&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=72818&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=72818&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=72818&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=72818&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=72818&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=72818&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=72818&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=72818&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=72818&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=72818&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=72818&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=72818&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72818&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=72818&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=72818&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=72818&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72818&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=72818&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=72818&r=mysqlcfg



Thread (4 messages)

« previous php.bugs (#203198) next »