Skip to content

Commit 621480c

Browse files
committed
Fix redis patch for PHP 8.6
1 parent ce97145 commit 621480c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/patch-extensions.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ patch_redis() {
8080
sed -i -e "s|standard/php_random.h|ext/random/php_random.h|" redis.c
8181
fi
8282
[[ "$PHP_VERSION" = "8.5" || "$PHP_VERSION" = "8.6" ]] && sed -i 's#ext/standard/php_smart_string.h#zend_smart_string.h#' common.h
83+
if [[ "$PHP_VERSION" = "8.6" ]]; then
84+
for file in library.c redis_commands.c cluster_library.c; do
85+
sed -i 's/zval_is_true/zend_is_true/' $file
86+
done
87+
fi
8388
}
8489

8590
# Function to patch igbinary source.

0 commit comments

Comments
 (0)