title: Remove an empty directory from a ZIP file with PHP
body: <p>PHP brings a <a href="http://php.net/manual/en/class.ziparchive.php" rel="nofollow noreferrer">class for ZIP file manipulation</a>. It also allows the creation of directories with addEmptyDir() and the deletion of an entry with deleteName(). But the deletion does not work on directories (empty or not). Is there any way to delete empty folders in a ZIP file (prefered is buildin PHP functionality)?</p>