summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-08-19 15:21:56 +0200
committerAnatol Belski <ab@php.net>2015-08-19 15:23:23 +0200
commit026b41ba664bd8f76d6d201d7af8e70c8b650194 (patch)
tree4116e5c2d555c9b68bc2a37d8d029ba295f7b9ac /ext/zip/php_zip.c
parented78d59a1dc9d84cf6ce77fbad94ab7e2f860cb5 (diff)
downloadphp-git-026b41ba664bd8f76d6d201d7af8e70c8b650194.tar.gz
improve error message
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r--ext/zip/php_zip.c2
1 files changed, 1 insertions, 1 deletions
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;