MDL-18431 use of ZIPARCHIVE::OVERWRITE changed in 5.2.8 - credit goes to Dan Marsden

This commit is contained in:
Petr Skoda 2010-09-10 21:19:31 +00:00
parent c311889cc0
commit 05f2d18ba2

View File

@ -68,7 +68,7 @@ class zip_archive extends file_archive {
switch($mode) {
case file_archive::OPEN: $flags = 0; break;
case file_archive::OVERWRITE: $flags = ZIPARCHIVE::CREATE | ZIPARCHIVE::OVERWRITE; break;
case file_archive::OVERWRITE: $flags = ZIPARCHIVE::CREATE | ZIPARCHIVE::OVERWRITE; break; //changed in PHP 5.2.8
case file_archive::CREATE:
default : $flags = ZIPARCHIVE::CREATE; break;
}