Skip to content

Commit 6758cc0

Browse files
committed
Fix patch for Xdebug on PHP 8.6
1 parent dcdc97e commit 6758cc0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/patch-extensions.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ patch_xdebug() {
5151
[[ "$PHP_VERSION" = "8.5" || "$PHP_VERSION" = "8.6" ]] && sed -i 's/80600/80700/g' config.m4
5252
[[ "$PHP_VERSION" = "8.5" || "$PHP_VERSION" = "8.6" ]] && sed -i 's#ext/standard/php_smart_string.h#Zend/zend_smart_string.h#' src/develop/stack.c src/lib/var.c
5353
[[ "$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
54+
[[ "$PHP_VERSION" = "8.6" ]] && sed -i 's/ZSTR_INIT_LITERAL(tmp_name, false)/zend_string_init(tmp_name, strlen(tmp_name), false)/g' src/profiler/profiler.c
5455
}
5556

5657
# Function to patch amqp source.

0 commit comments

Comments
 (0)