Skip to content

Commit

Permalink
ext/zip: Remove un-needed symbol check for zip_open
Browse files Browse the repository at this point in the history
Closes phpGH-4189.
  • Loading branch information
hughmcmaster authored and nikic committed Jun 3, 2019
1 parent 310f96f commit f349d79
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions ext/zip/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,7 @@ if test "$PHP_ZIP" != "no"; then
PHP_EVAL_LIBLINE($LIBZIP_LIBS, ZIP_SHARED_LIBADD)
LIBZIP_LIBDIR=`$PKG_CONFIG --variable=libdir libzip`

dnl Could not think of a simple way to check libzip for overwrite support
PHP_CHECK_LIBRARY(zip, zip_open,
[
AC_DEFINE(HAVE_LIBZIP,1,[ ])
], [
AC_MSG_ERROR(could not find usable libzip)
], [
-L$LIBZIP_LIBDIR
])
AC_DEFINE(HAVE_LIBZIP, 1, [ ])

PHP_CHECK_LIBRARY(zip, zip_file_set_encryption,
[
Expand Down

0 comments on commit f349d79

Please sign in to comment.