Why PHP will not create this zip file (permission issue)

  • I'm on the windows

  • I use PHING to create some files

  • I have a lot of things that can be zipped

  • Work with records, with the exception of those that contain a specific set of phing files in files encrypted

  • When I debug, I see in phing ZIP Task that ZipArchive :: close returns false. The error line reads "permission denied." The manual states that close () is what the file actually writes.

  • This is not a temporary connection, in other words, it happens when it is first, last or something else. Everyone else is working. Apparently, this is nothing special.

Here is my build file: http://pastebin.org/84786 (useful for one month)

The problem is at line 251. The zip tasks that precede and follow it work fine. In the debugger, I see about 150 files added to zip. I checked that all paths were correct in the debugger.

The build seems to work fine on Linux.

When I right-click the folder in which the zip files are stored, the read-only flag is “crossed out”, not checked or not checked. Wether I will leave it checked or unchecked, and click "OK" and return to the folder properties, the "blue" checkbox again. This seems to be by design ( http://support.microsoft.com/kb/326549 ), and this doesn't seem to be a problem, as it only happens with one file.

: 252 , , , , zip. .tar.gz 236 . , , zip. tar. "package" , , , tar.gz.

?

: ... Windows, , , myzipfile.zip.tmp , myzipfile.zip .

linux , . .

+5
3

, , TMP ZIP . , - , .

+1

, , . - , , . (\\). , , , .

0

, , Linux/Unix, , /. Unix ( , "" ). Windows , , , , , , ( ). , , , . ( zip-, , , / ( 2 FAT))

0
source

All Articles