Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-18431

use of ZIPARCHIVE::OVERWRITE changed in 5.2.8

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Files API
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      using OVERWRITE no-longer creates a file if it didn't already exist see the comments here:

      http://nz.php.net/manual/en/function.ziparchive-open.php#88765

      in zip_archive.php suggest changing:
      case file_archive::OVERWRITE: $flags = ZIPARCHIVE::OVERWRITE; break;
      with:
      case file_archive::OVERWRITE: $flags = ZIPARCHIVE::CREATE | ZIPARCHIVE::OVERWRITE; break;

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              danmarsden Dan Marsden
              Participants:
              Component watchers:
              Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10