From 6ec8dce014399e63a5cb35e829a24903054cb03e Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Thu, 26 Sep 2024 17:54:19 +0000 Subject: [PATCH] Fix patch for Xdebug on PHP 8.5 --- scripts/patch-extensions.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/patch-extensions.sh b/scripts/patch-extensions.sh index ec56cea..10773e1 100644 --- a/scripts/patch-extensions.sh +++ b/scripts/patch-extensions.sh @@ -27,8 +27,7 @@ patch_pdo_sqlsrv() { # Function to patch xdebug source. patch_xdebug() { - # Patch for xdebug on PHP 8.3. - sed -i 's/80400/80500/g' config.m4 + [[ "$PHP_VERSION" = "8.5" ]] && sed -i 's/80500/80600/g' config.m4 [[ "$PHP_VERSION" = "8.4" || "$PHP_VERSION" = "8.5" ]] && sed -i -e "s|ext/standard/php_lcg.h|ext/random/php_random.h|" src/lib/usefulstuff.c }