Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/core#769 - Fix for ZipArchive->open() PHP bug #13728

Merged
merged 1 commit into from
Mar 1, 2019

Conversation

Edzelopez
Copy link
Contributor

@Edzelopez Edzelopez commented Feb 28, 2019

Overview

There is an issue with the ZipArchive class' open() method. In previous versions of PHP when the only flag passed to the method was the ZipArchive::OVERWRITE, the method also created non-existing archives.
Since PHP 5.6 the OVERWRITE flag alone cannot create new archives which breaks compatibility.

Before

Zip files were created if they did not exist by simply specifying the ZIPARCHIVE::OVERWRITE flag.

After

ZipArchive::ER_OPEN error code is returned (cannot open zip file).

Technical Details

Bug report: https://bugs.php.net/bug.php?id=71064

@civibot
Copy link

civibot bot commented Feb 28, 2019

(Standard links)

@civibot civibot bot added the master label Feb 28, 2019
@seamuslee001
Copy link
Contributor

Jenkins re test this please

@eileenmcnaughton
Copy link
Contributor

This is one of those features that shouldn't be in core but since it is & this is a trivial change by the main user /supporter of this I'm going to merge it

@eileenmcnaughton eileenmcnaughton merged commit a274acc into civicrm:master Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants