File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -3213,11 +3213,14 @@ static PHP_MINFO_FUNCTION(zip)
3213
3213
php_info_print_table_row (2 , "Zip" , "enabled" );
3214
3214
php_info_print_table_row (2 , "Zip version" , PHP_ZIP_VERSION );
3215
3215
#ifdef HAVE_LIBZIP_VERSION
3216
- php_info_print_table_row ( 2 , "Libzip headers version" , LIBZIP_VERSION );
3217
- php_info_print_table_row (2 , "Libzip library version" , zip_libzip_version () );
3218
- #else
3219
- php_info_print_table_row ( 2 , "Libzip version" , LIBZIP_VERSION );
3216
+ if ( strcmp ( LIBZIP_VERSION , zip_libzip_version ())) {
3217
+ php_info_print_table_row (2 , "Libzip headers version" , LIBZIP_VERSION );
3218
+ php_info_print_table_row ( 2 , "Libzip library version" , zip_libzip_version ());
3219
+ } else
3220
3220
#endif
3221
+ {
3222
+ php_info_print_table_row (2 , "Libzip version" , LIBZIP_VERSION );
3223
+ }
3221
3224
#ifdef HAVE_METHOD_SUPPORTED
3222
3225
php_info_print_table_row (2 , "BZIP2 compression" ,
3223
3226
zip_compression_method_supported (ZIP_CM_BZIP2 , 1 ) ? "Yes" : "No" );
You can’t perform that action at this time.
0 commit comments