note 100808 added to function.ziparchive-addemptydir

From: Date: Mon, 08 Nov 2010 14:49:05 +0000
Subject: note 100808 added to function.ziparchive-addemptydir
Groups: php.notes 
Request: Send a blank email to php-notes+get-173849@lists.php.net to get a copy of this message
Warning D.Jann Your addFolderToZip function works well only if you replace this line : $zipArchive->addEmptyDir($dir); with that one if(!empty($zipdir)) $zipArchive->addEmptyDir($zipdir); If not the directory structure could be wrong if some cases like with a source folder like that : "dir/../dir" ---- Server IP: 69.147.83.197 Probable Submitter: 212.99.26.50 ---- Manual Page -- http://www.php.net/manual/en/function.ziparchive-addemptydir.php Edit -- https://master.php.net/note/edit/100808 Del: integrated -- https://master.php.net/note/delete/100808/integrated Del: useless -- https://master.php.net/note/delete/100808/useless Del: bad code -- https://master.php.net/note/delete/100808/bad+code Del: spam -- https://master.php.net/note/delete/100808/spam Del: non-english -- https://master.php.net/note/delete/100808/non-english Del: in docs -- https://master.php.net/note/delete/100808/in+docs Del: other reasons-- https://master.php.net/note/delete/100808 Reject -- https://master.php.net/note/reject/100808 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#173849) next »