]> granicus.if.org Git - php/commit
Fix #70322: ZipArchive::close() doesn't indicate errors
authorChristoph M. Becker <cmbecker69@gmx.de>
Fri, 21 Aug 2015 20:26:26 +0000 (22:26 +0200)
committerChristoph M. Becker <cmb@php.net>
Fri, 4 Sep 2015 22:34:10 +0000 (00:34 +0200)
commitc77f783777e0169b2a4b7b9439cad76b372290a3
treec1370e0d681d44fa142b051f6dbbd5ef26180a7c
parent4b1dff6f438f84f7694df701b68744edbdd86153
Fix #70322: ZipArchive::close() doesn't indicate errors

If an archive can't be written, ZipArchive::close() nonetheless returns TRUE.
We fix the return value to properly return success, and additionally raise a
warning on failure.
ext/zip/php_zip.c
ext/zip/tests/bug70322.phpt [new file with mode: 0644]
ext/zip/tests/oo_delete.phpt