File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232
3333 if [ ! -f " ${LA_PREFIX} /lib/libarchive.so" ] && [ ! -f " ${LA_PREFIX} /lib/libarchive.a" ]; then
3434 if command -v apk > /dev/null 2>&1 ; then
35- apk add --no-cache build-base curl zlib-dev bzip2-dev xz-dev zstd-dev lz4-dev openssl-dev
35+ apk add --no-cache build-base curl zlib-dev bzip2-dev xz-dev zstd-dev lz4-dev openssl-dev expat-dev
3636 else
3737 _sudo=" "
3838 [ " $( id -u) " != " 0" ] && _sudo=" sudo"
3939 $_sudo apt-get update -qq
40- $_sudo apt-get install -y -qq build-essential curl zlib1g-dev libbz2-dev liblzma-dev libzstd-dev liblz4-dev libssl-dev
40+ $_sudo apt-get install -y -qq build-essential curl zlib1g-dev libbz2-dev liblzma-dev libzstd-dev liblz4-dev libssl-dev libexpat1-dev
4141 fi
4242
4343 BUILD_DIR=" $( mktemp -d) "
4444 curl -fsSL " https://github.com/libarchive/libarchive/releases/download/${LIBARCHIVE_VERSION} /libarchive-${LA_VERSION_NUM} .tar.gz" \
4545 | tar xz -C " $BUILD_DIR "
4646 cd " ${BUILD_DIR} /libarchive-${LA_VERSION_NUM} "
47- ./configure --prefix=" ${LA_PREFIX} " --disable-bsdtar --disable-bsdcat --disable-bsdcpio --disable-bsdunzip --without-xml2 --without -expat
47+ ./configure --prefix=" ${LA_PREFIX} " --disable-bsdtar --disable-bsdcat --disable-bsdcpio --disable-bsdunzip --without-xml2 --with -expat
4848 make -j" $( nproc) "
4949 make install
5050 cd -
Original file line number Diff line number Diff line change 7070 uses : actions/cache@v4
7171 with :
7272 path : .libarchive-cache
73- key : libarchive-${{ matrix.libarchive_version }}-${{ runner.arch }}
73+ key : libarchive-${{ matrix.libarchive_version }}-${{ runner.arch }}-v2
7474
7575 - name : Build and test
7676 env :
Original file line number Diff line number Diff line change @@ -957,7 +957,7 @@ static void arch_it_dtor(zend_object_iterator *iter)
957957 zval_ptr_dtor (& it -> parent .data ); // reduce refcount on archive
958958 it -> finished = true;
959959}
960- static zend_result arch_it_valid (zend_object_iterator * iter )
960+ static int arch_it_valid (zend_object_iterator * iter )
961961{
962962 arch_iterator * it = (arch_iterator * )iter ;
963963 if (Z_ISUNDEF (it -> value ) && !it -> finished ) {
You can’t perform that action at this time.
0 commit comments