Skip to content

Remove HAVE_LIBZIP #4450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions ext/zip/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ if test "$PHP_ZIP" != "no"; then
PHP_EVAL_INCLINE($LIBZIP_CFLAGS)
PHP_EVAL_LIBLINE($LIBZIP_LIBS, ZIP_SHARED_LIBADD)

AC_DEFINE(HAVE_LIBZIP, 1, [ ])

PHP_CHECK_LIBRARY(zip, zip_file_set_encryption,
[
AC_DEFINE(HAVE_ENCRYPTION, 1, [Libzip >= 1.2.0 with encryption support])
Expand Down
1 change: 0 additions & 1 deletion ext/zip/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ if (PHP_ZIP != "no") {
}

AC_DEFINE('HAVE_ZIP', 1);
AC_DEFINE('HAVE_LIBZIP', 1);
ADD_FLAG("CFLAGS_ZIP", "/D _WIN32 /D HAVE_ENCRYPTION");
} else {
WARNING("zip not enabled; libraries and headers not found");
Expand Down
4 changes: 0 additions & 4 deletions ext/zip/php_zip.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ extern zend_module_entry zip_module_entry;
#include "TSRM.h"
#endif

#if defined(HAVE_LIBZIP)
#include <zip.h>
#else
#include "lib/zip.h"
#endif

#ifndef ZIP_OVERWRITE
#define ZIP_OVERWRITE ZIP_TRUNCATE
Expand Down