diff options
author | Remi Collet <remi@php.net> | 2017-12-19 14:46:32 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2017-12-19 14:46:32 +0100 |
commit | c21ec44b214119479879222424a598210bb42775 (patch) | |
tree | 3306d70b43a88b5e670a52d5daf08e7c9eba80f5 /ext/zip/php_zip.c | |
parent | a1d2bf831f22f0f583ea9aa7c18b3a257b907396 (diff) | |
download | php-git-c21ec44b214119479879222424a598210bb42775.tar.gz |
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.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 92a5c036b4..3da018d97e 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -3304,7 +3304,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(); } |