title: using zipArchive addFile() will not add image to zip
body: <p>I've been at this for a while. This actually worked one time, then never again. it simply does not create the zip file. The file does exist.    </p>
  
  <pre><code>$zip = new ZipArchive();
  $filename = "./test" . time() .".zip";
  
  if ($zip-&gt;open($filename, ZIPARCHIVE::CREATE)!==TRUE) {      
      exit("cannot open &lt;$filename&gt;\n");
  }
  
  $thisdir = "$_SERVER[DOCUMENT_ROOT]/zip";
  $zip-&gt;addFile($thisdir . "/trash-icon.png", "/gabage.png");
  echo "numfiles: " . $zip-&gt;numFiles . "\n";
  echo "status:" . $zip-&gt;status . "\n";
  $zip-&gt;close();
  </code></pre>
  
  <p>If I add something like </p>
  
  <pre><code>$zip-&gt;addFromString("testfilephp.txt", "#1 This is a test string added as testfilephp.txt.\n"); 
  </code></pre>
  
  <p>it creates the zip with the txt file in it.. but a no go for anytype of existing file.</p>