From 32f2285f2eaee6699d3fc1cf54e4ec2bbacefa09 Mon Sep 17 00:00:00 2001 From: Dries C Date: Sat, 2 Mar 2024 15:41:31 +0100 Subject: [PATCH] Add FFI support --- .github/workflows/main-pm-matrix.yml | 4 ++-- windows-compile-vs.bat | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main-pm-matrix.yml b/.github/workflows/main-pm-matrix.yml index 3b65614b..43a979cd 100644 --- a/.github/workflows/main-pm-matrix.yml +++ b/.github/workflows/main-pm-matrix.yml @@ -34,7 +34,7 @@ jobs: # Used "set -ex" instead of hashbang since script isn't executed with hashbang set -ex trap "exit 1" ERR - ./compile.sh -t linux64 -j 4 -g -P ${{ inputs.pm-version-major }} -c ./download_cache -D + ./compile.sh -t linux64 -j 4 -g -F -P ${{ inputs.pm-version-major }} -c ./download_cache -D - name: Create tarball run: | @@ -97,7 +97,7 @@ jobs: export PATH="/usr/local/opt/bison/bin:$PATH" set -ex trap "exit 1" ERR - ./compile.sh -t ${{ matrix.target-name }} -j4 -g -P ${{ inputs.pm-version-major }} -c ./download_cache -D + ./compile.sh -t ${{ matrix.target-name }} -j4 -g -F -P ${{ inputs.pm-version-major }} -c ./download_cache -D - name: Create tarball run: | diff --git a/windows-compile-vs.bat b/windows-compile-vs.bat index 0d258ea7..447d1b4f 100644 --- a/windows-compile-vs.bat +++ b/windows-compile-vs.bat @@ -398,6 +398,7 @@ call configure^ --with-crypto=shared^ --with-curl^ --with-dom^ + --with-ffi^ --with-gd=shared^ --with-gmp^ --with-iconv^ @@ -474,6 +475,7 @@ if "%PM_VERSION_MAJOR%" geq "5" ( (echo opcache.optimization_level=0x7FFEBFFF)>>"%php_ini%" (echo opcache.cache_id=PHP_BINARY ;prevent sharing SHM between different binaries - they won't work because of ASLR)>>"%php_ini%" (echo ;Optional extensions, supplied for plugin use)>>"%php_ini%" +(echo extension=php_ffi.dll)>>"%php_ini%" (echo extension=php_fileinfo.dll)>>"%php_ini%" (echo extension=php_gd.dll)>>"%php_ini%" (echo extension=php_grpc.dll)>>"%php_ini%"