title: Why won't PHP create this zip file (permissions issue)
body: <ul>
  <li><p>I am on windows</p></li>
  <li><p>I am using PHING to zip up some files</p></li>
  <li><p>I have lots of things being zipped</p></li>
  <li><p>Zipping works, except for ones that include a particular phing fileset in the files being zipped</p></li>
  <li><p>When I debug, I can see in phing's ZIP Task that ZipArchive::close is returning false. The error string reads "permission denied". In the manual it states close() is what actually writes the file.</p></li>
  <li><p>It is not temporal coupling, in other words it happens wether this one is first, last or whatever. All the other ones work. There is seemingly nothing different about this one.</p></li>
  </ul>
  
  <p>Here is my build file: <a href="http://pastebin.org/84786" rel="nofollow noreferrer">http://pastebin.org/84786</a> (good for one month)</p>
  
  <p>The problem is at line 251. The zip tasks preceding and following it both work fine. In the debugger I can see about 150 files are added to the zip. I have verified all the paths to be correct in the debugger.</p>
  
  <p>The build seems to work fine on linux.</p>
  
  <p>When I right click the folder where the zip files are going, the read only check box is "blued out", not checked or unchecked. Wether I leave it checked or unchecked and press ok and go back into the folder's properties, the checkbox is "blue" again.  Apparently this is by design (<a href="http://support.microsoft.com/kb/326549" rel="nofollow noreferrer">http://support.microsoft.com/kb/326549</a>) and this does not seem like the problem since it happens only with that one file.</p>
  
  <p>The other weird thing is if I go to line 252 and change the fileset to point at, for example, the files from the "importer" module right above it, it creates the zip. However the .tar.gz on line 236 the same fileset proves to work fine every time. So it only happens with the specific file set for zip tasks. The file set works fine with the tar task. In fact all the tasks under the "package" comments below it that also reference those files do not get created, but the tar.gz files do.</p>
  
  <p>What gives?</p>
  
  <p>Also: new observation... looks like on both Windows machines if I refresh file view fast enough I can see myzipfile.zip.tmp being built up, but myzipfile.zip never gets created.</p>
  
  <p>On linux I just double checked everything is working flawlessly. Go figure.</p>