From e9ffa3e1ec166fa1842fd1162deea88b1536b5c6 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Wed, 13 Dec 2023 03:33:45 +0000 Subject: [PATCH] Add patch to fix php_pcre_match_impl call in PCOV for PHP 8.4 --- scripts/install-extension.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/install-extension.sh b/scripts/install-extension.sh index 211adb8..0889d3c 100644 --- a/scripts/install-extension.sh +++ b/scripts/install-extension.sh @@ -47,6 +47,10 @@ patch_igbinary() { [[ "$PHP_VERSION" = "8.3" || "$PHP_VERSION" = "8.4" ]] && find . -type f -exec sed -i 's/zend_uintptr_t/uintptr_t/g' {} +; } +patch_pcov() { + [[ "$PHP_VERSION" = "8.4" ]] && sed -i 's/0, 0, 0, 0/0, 0, 0/' pcov.c +} + extension=$1 repo=$2 tag=$3