Skip to content

Commit

Permalink
Fix patch for Xdebug on PHP 8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Sep 26, 2024
1 parent e8592f4 commit 6ec8dce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/patch-extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 6ec8dce

Please sign in to comment.