note 110774 added to ziparchive.close

From: Date: Thu, 06 Dec 2012 12:29:03 +0000
Subject: note 110774 added to ziparchive.close
Groups: php.notes 
Request: Send a blank email to php-notes+get-192289@lists.php.net to get a copy of this message
Another note to add to the previous comments: another reason for closing a zip file to fail is if you added a folder instead of a file using addFile(). I had a loop with file_exists() checks on each file, but that function will also return true if the path you give it is a folder. I ended up using is_file() to make sure I was really adding files. ---- Server IP: 69.147.83.199 Probable Submitter: 31.7.176.14 (proxied: 80.14.216.113) ---- Manual Page -- http://php.net/manual/en/ziparchive.close.php Edit -- https://master.php.net/note/edit/110774 Del: integrated -- https://master.php.net/note/delete/110774/integrated Del: useless -- https://master.php.net/note/delete/110774/useless Del: bad code -- https://master.php.net/note/delete/110774/bad+code Del: spam -- https://master.php.net/note/delete/110774/spam Del: non-english -- https://master.php.net/note/delete/110774/non-english Del: in docs -- https://master.php.net/note/delete/110774/in+docs Del: other reasons-- https://master.php.net/note/delete/110774 Reject -- https://master.php.net/note/reject/110774 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#192289) next »