]> granicus.if.org Git - php/commit
Raise E_WARNING on PHP related errors
authorChristoph M. Becker <cmbecker69@gmx.de>
Tue, 20 Oct 2020 10:31:58 +0000 (12:31 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 26 Oct 2020 10:40:06 +0000 (11:40 +0100)
commitf4b0b32e2dc2c1705c587a52bc5d242a33918ac9
treeab32ae59477378af7e20319ed4836a51a502d5dd
parented64d1b5a9acc3d861dcd8e52388c68b318b4547
Raise E_WARNING on PHP related errors

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.
ext/zip/php_zip.c
ext/zip/tests/bug64342_0.phpt
ext/zip/tests/bug64342_1-mb.phpt
ext/zip/tests/bug64342_1.phpt