title: ZipArchive::close returns false
body: <p>Hi I am attempting to create a new zip file, I have recompiled PHP enabling ZIP and here is my code  </p>
  
  <pre><code>        if($_SERVER['REQUEST_METHOD'] == "POST"){ 
            $zip = new ZipArchive;     
            if($zip-&gt;open("/home/user1joe/public_html/upload/test.zip",ZIPARCHIVE::CREATE)!= true)  {
                   echo "error file did not up upload";
                   exit(0);
            }
            foreach ($_FILES["images"]["error"] as $key =&gt; $error) 
                    if ($error == UPLOAD_ERR_OK) {
                          $temp_name = $_FILES["images"]["tmp_name"][$key];
                          $new_name  = $_FILES['images']['name'][$key];
                          var_dump($temp_name);
                          var_dump($new_name); 
  
                          if(file_exists($temp_name)){
                                $zip-&gt;addFile($temp_name,$new_name);
                                move_uploaded_file($temp_name, "upload/".$new_name);
                          } else
                                echo "error file does not exist"; 
  
                          echo "numfiles: " . $zip-&gt;numFiles . "\n";
                          echo "status:" . $zip-&gt;status . "\n";
                    }
            $res = $zip-&gt;close();
            var_dump($res);
            }
  </code></pre>
  
  <p>$zip->close() is returning false and no zip is being created. </p>
  
  <ul>
  <li>I get no errors building up to this </li>
  <li>$zip->numFiles shows there are files in the archive </li>
  <li>The folder where I want to create the zip has writable permission </li>
  </ul>
  
  <p>I am a bit lost of what else I can test for, any ideas would be great!</p>