From 05f2d18ba2f634934fc1ad0fdc6f51c73c6b55ba Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Fri, 10 Sep 2010 21:19:31 +0000 Subject: [PATCH] MDL-18431 use of ZIPARCHIVE::OVERWRITE changed in 5.2.8 - credit goes to Dan Marsden --- lib/filestorage/zip_archive.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filestorage/zip_archive.php b/lib/filestorage/zip_archive.php index 8ffa0f06f8a..c7aac1b8759 100644 --- a/lib/filestorage/zip_archive.php +++ b/lib/filestorage/zip_archive.php @@ -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; }