Skip to content

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Oct 20, 2020

If Zip operations fails due to PHP error conditions before libzip even
has been called, there is no meaningful indication what failed; the
functions just return false, and the Zip status indicated that no error
did occur. Therefore we raise E_WARNING in these cases.


As can be seen from the need to "fix" some existing tests, this might be too much of a BC break for 7.3 and even 7.4. Maybe just target 8.0?

If Zip operations fails due to PHP error conditions before libzip even
has been called, there is no meaningful indication what failed; the
functions just return false, and the Zip status indicated that no error
did occur.  Therefore we raise `E_WARNING` in these cases.
@cmb69 cmb69 requested a review from remicollet October 20, 2020 10:41
@cmb69
Copy link
Member Author

cmb69 commented Oct 26, 2020

I briefly discussed this with @remicollet, and we agreed it's better to only apply this to the "master" branch.

@php-pulls php-pulls closed this in f4b0b32 Oct 26, 2020
@cmb69 cmb69 deleted the cmb/zip-warnings branch October 26, 2020 10:42
php-pulls pushed a commit that referenced this pull request Nov 6, 2020
If Zip operations fails due to PHP error conditions before libzip even
has been called, there is no meaningful indication what failed; the
functions just return false, and the Zip status indicated that no error
did occur.  Therefore we raise `E_WARNING` in these cases.

Closes GH-6356.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant