summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.c
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2017-12-19 14:48:21 +0100
committerRemi Collet <remi@php.net>2017-12-19 14:48:21 +0100
commit50e8ee128f2ed9dc476bb4dc240b99a883320784 (patch)
tree7ef65886b707b89bdcbe9406cd5c4dcca1c0ec83 /ext/zip/php_zip.c
parent0994e373f21c1b4c63d38975f0c62866f0378113 (diff)
parentac4da9a0ede87a437bc75f6135e103e2d3747b09 (diff)
downloadphp-git-50e8ee128f2ed9dc476bb4dc240b99a883320784.tar.gz
Merge branch 'PHP-7.2'
* PHP-7.2: NEWS display headers (buildtime) and library (runtime) versions in phpinfo (libzip >= 1.3.1)
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r--ext/zip/php_zip.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c
index 926aaae7e2..158be1143e 100644
--- a/ext/zip/php_zip.c
+++ b/ext/zip/php_zip.c
@@ -3313,7 +3313,12 @@ static PHP_MINFO_FUNCTION(zip)
php_info_print_table_row(2, "Zip", "enabled");
php_info_print_table_row(2, "Zip version", PHP_ZIP_VERSION);
+#if HAVE_LIBZIP_VERSION
+ php_info_print_table_row(2, "Libzip headers version", LIBZIP_VERSION);
+ php_info_print_table_row(2, "Libzip library version", zip_libzip_version());
+#else
php_info_print_table_row(2, "Libzip version", LIBZIP_VERSION);
+#endif
php_info_print_table_end();
}