From: Anatol Belski Date: Wed, 19 Aug 2015 13:21:56 +0000 (+0200) Subject: improve error message X-Git-Tag: php-7.0.0RC2~2^2~111^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=026b41ba664bd8f76d6d201d7af8e70c8b650194;p=php improve error message --- diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 672097dec5..dd2414dce2 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -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;