]> granicus.if.org Git - php/commitdiff
improve error message
authorAnatol Belski <ab@php.net>
Wed, 19 Aug 2015 13:21:56 +0000 (15:21 +0200)
committerAnatol Belski <ab@php.net>
Wed, 19 Aug 2015 13:23:23 +0000 (15:23 +0200)
ext/zip/php_zip.c

index 672097dec5d59b22ab9ee9628978e7470b68c6ac..dd2414dce297be909644f06a425fc8b3995cc403 100644 (file)
@@ -996,7 +996,7 @@ static void php_zip_object_free_storage(zend_object *object) /* {{{ */
        }
        if (intern->za) {
                if (zip_close(intern->za) != 0) {
-                       php_error_docref(NULL, E_WARNING, "Cannot destroy the zip context");
+                       php_error_docref(NULL, E_WARNING, "Cannot destroy the zip context: %s", zip_strerror(intern->za));
                        return;
                }
                intern->za = NULL;