libzip is a widely used open source library for creating, writing and processing zip files
Questions tagged [libzip]
82 questions
81
votes
8 answers
Docker image build with PHP zip extension shows "bundled libzip is deprecated" warning
I have a Dockerfile with a build command like this:
#install some base extensions
RUN apt-get install -y \
zlib1g-dev \
zip \
&& docker-php-ext-install zip
I get this warning from build output:
WARNING: Use of bundled libzip is…

sakhunzai
- 13,900
- 23
- 98
- 159
17
votes
1 answer
Installing PHP-zip on a php:7.4-fpm image
I want to install php-zip on my docker image (the end goal is to use the PhpWord Library). I use the php:7.4-fpm, which runs on Debian.
In my dockerfile, i use the command :
RUN apt-get update docker-php-ext-install zip
When executed, the script…

Mouke
- 854
- 1
- 7
- 19
9
votes
2 answers
unable to install libzip4 on ubuntu 19.04
trying to install libzip4 on ubuntu 19.04 for mysql-workbench dependency
Install method:
sudo apt install ./mysql-workbench-community_8.0.16-1ubuntu18.04_amd64.deb
error message:
mysql-workbench-community : Depends: libzip4 (>= 0.10) but it is not…

K3NN3TH
- 1,458
- 2
- 19
- 31
6
votes
3 answers
configure: error: Please reinstall the BZip2 distribution
I am trying to compile php from source on mac with the bzip2 extension and I keep getting an error saying
checking for BZip2 in default path... not found
I've tried setting the LDFLAGS and CPPFLAGS but that doesn't seem to work.
The dylib is in…

kellum42
- 61
- 1
- 3
6
votes
2 answers
How can libzip be used from C to create a zip file in memory?
I am trying to using libzip to create a zip file directly in memory, not to a file on disk. My code is quite basic at the moment as I am getting stuck on creating the necessary zip_t struct from a zip_source_buffer:
#include
#include…

Dave Lawrence
- 1,281
- 12
- 17
6
votes
2 answers
How to set password to zip file with libZip
I'm using libZip in my project,
I success to create zip file output, but I'm having difficulty to set a password to a zip file.
I'm calling the zip_set_default_password fucntion and I'm getting the OK response, but when I'm trying to extract it…

Simon
- 1,522
- 2
- 12
- 24
5
votes
2 answers
Using std::endl on an ostream makes my file binary
I am working on a project that uses libzip. I'm working in c++14 and I wrote a tiny wrapper around libzip to make my life easier.
I have an std::ostream object built around custom class that inherits std::streambuf. This streambuf uses the libzip…

Ebatsin
- 552
- 5
- 17
5
votes
1 answer
Unzipping a file to disk using libzip
I'm trying to unzip an executable file using c++ and the libzip library. Starting with the answer by rodrigo on a similar question, I come to this sample code:
#include
int main()
{
//Open the ZIP archive
int err = 0;
zip *z =…

Lucas B
- 69
- 2
- 7
4
votes
1 answer
How to update Libzip to 1.2 on ubuntu 18.04 and PHP 7.2
I want to use ZipArchive::setEncryptionName on Ubuntu server 18.04.1 with PHP 7.2.7
Problem is that setEncryptionName need Libzip version at least 1.2
default configuration from PHP info:
Zip version 1.15.2
Libzip version 1.1.2
I don't know how to…

Roman
- 41
- 1
- 3
4
votes
1 answer
Can not find zipconf.h when compile php7.0.1
I installed libzip-1.0.1, and when I am on make phase for installing php, it shows an error said zip.h can not find zipconf.h. Actually, libzip-1.0.1 has zipconf.h, but is not in the same directory with zip.h. It is under…

Will
- 633
- 11
- 26
3
votes
1 answer
How to download a zip file from github repo and read her content in memory?
I have uploaded a zip file compressed with 7-zip option add to .zip containing only a file with the name text.txt into GitHub, how I could read the content of the file text.txt without writing it to disk?
I'm downloading the zip to memory using…

Cesar
- 41
- 2
- 5
- 16
3
votes
1 answer
C++ Libzip + remove = core dump
I have an issue when using libzip. I am on linux and have installed the library using sudo apt-get install libzip2 libzip-dev (so it is not the latest version).
Here is my code :
#include
#include
#include
#include…

M0rkHaV
- 432
- 1
- 4
- 16
3
votes
1 answer
android NDK. libzip stopped to sub folder
I use libzip to read APK content in native code.
assets/sounds/voice folder "disappeared" for libzip functions only.
libzip still see other files.
I still can see it in assets/sounds/voice in project folder.
I did clean many times.
I still can…

Shuriken
- 1,382
- 1
- 12
- 14
3
votes
0 answers
libzip: validating a zip file before loading
I use libzip to open zip files in my application and in order to ensure good behavior in case of corrupt zip files I manually corrupted a zip file (by removing a few random lines with a text editor) and try to load that file. However this hangs the…

Mike Lischke
- 48,925
- 16
- 119
- 181
2
votes
1 answer
How to construct a zip file with libzip
I try to create a compressed file and insert an xml file in it using two libraries (pugixml / libzip), everything goes without error, but when I open the xml file, the encoding at the beginning of the file is weird :
Main.cpp :
#include…

Al Tilmidh
- 33
- 5