Skip to content

Commit a07cc19

Browse files
committed
Try to fix libzip on macos
1 parent 76ca6bf commit a07cc19

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

azure/macos/brew.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ parameters:
22
packages: ''
33

44
steps:
5+
- script: brew update
6+
displayName: 'Update Homebrew'
57
- script: |
68
brew install pkg-config \
79
autoconf \

ext/zip/php_zip.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
#include "zend_interfaces.h"
3232
#include "php_zip.h"
3333

34+
#ifndef LIBZIP_VERSION_MAJOR
35+
# error You are likely using libzip 1.7.0, which is badly broken. Update to libzip 1.7.1
36+
#endif
37+
3438
/* zip_open is a macro for renaming libzip zipopen, so we need to use PHP_NAMED_FUNCTION */
3539
static PHP_NAMED_FUNCTION(zif_zip_open);
3640
static PHP_NAMED_FUNCTION(zif_zip_read);

0 commit comments

Comments
 (0)