From c00eacd5acf1c81345005b7b7057953514bae7e0 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sun, 14 Jan 2024 00:34:23 +0000 Subject: [PATCH] Add patch for Xdebug to use ext/random/php_random.c on PHP 8.4 --- scripts/install-extension.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install-extension.sh b/scripts/install-extension.sh index 49ce694..0f50c87 100644 --- a/scripts/install-extension.sh +++ b/scripts/install-extension.sh @@ -25,6 +25,7 @@ patch_pdo_sqlsrv() { patch_xdebug() { # Patch for xdebug on PHP 8.3. sed -i 's/80400/80500/g' config.m4 + [[ "$PHP_VERSION" = "8.4" ]] && sed -i -e "s|ext/standard/php_lcg.h|ext/random/php_random.h|" src/lib/usefulstuff.c } patch_amqp() {