note 117082 added to ziparchive.open

From: Date: Mon, 13 Apr 2015 07:23:31 +0000
Subject: note 117082 added to ziparchive.open
Groups: php.notes 
Request: Send a blank email to php-notes+get-202242@lists.php.net to get a copy of this message
Calling ZipArchive->open() will not create an empty zip archive file. I found this out the hard way. I wrote code that produced positive results: I.E. the return value from the call to ZipArchive was TRUE and the empty zip file was not created. So at least call ZipArchive->addFromString(<filename.zip>, '<minimal content>') when creating a new zip archive file. ---- Server IP: 72.52.91.14 Probable Submitter: 184.100.31.117 ---- Manual Page -- http://php.net/manual/en/ziparchive.open.php Edit -- https://master.php.net/note/edit/117082 Del: integrated -- https://master.php.net/note/delete/117082/integrated Del: useless -- https://master.php.net/note/delete/117082/useless Del: bad code -- https://master.php.net/note/delete/117082/bad+code Del: spam -- https://master.php.net/note/delete/117082/spam Del: non-english -- https://master.php.net/note/delete/117082/non-english Del: in docs -- https://master.php.net/note/delete/117082/in+docs Del: other reasons-- https://master.php.net/note/delete/117082 Reject -- https://master.php.net/note/reject/117082 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#202242) next »