note 95383 deleted from function.ziparchive-addemptydir by thiago

From: Date: Wed, 30 Dec 2009 12:08:53 +0000
Subject: note 95383 deleted from function.ziparchive-addemptydir by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-164461@lists.php.net to get a copy of this message
Note Submitter: wvoelcker ---- to elaborate on what pagetronic said, if you try to use addEmptyDir on some (?all?) versions of Debian etch, you will get the error "call to undefined method ZipArchive::addEmptyDir". I struggled with this for ages before realising that I could use addFromString to add a file to the archive, inside a new directory, without first creating the directory with addEmptyDir. From pagetronic's post, it looks like this also works for addFile.

« previous php.notes (#164461) next »