Skip to content

Commit 73099fc

Browse files
committed
Update to 5.0.4
1 parent 8befb8e commit 73099fc

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

install-extensions.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -xeu
44

55
: "${TIDEWAYS_VERSION:=4.1.4}"
6-
: "${TIDEWAYS_XHPROF_VERSION:=5.0.2}"
6+
: "${TIDEWAYS_XHPROF_VERSION:=5.0.4}"
77
: "${PHP_VERSION:=7.4}"
88

99
die() {
@@ -39,17 +39,19 @@ install_tideways_xhprof() {
3939
local extension="tideways_xhprof"
4040
local tar="$extension.tgz"
4141
local workdir="vendor/tideways_xhprof"
42-
local library="$PWD/$workdir/tideways_xhprof-$version/tideways_xhprof-$PHP_VERSION$zts.so"
42+
local library
4343
local config
4444
local zts
4545

46+
zts=$(php --version | grep -q ZTS && echo -zts || :)
47+
library="$PWD/$workdir/tideways_xhprof-$version/tideways_xhprof-$PHP_VERSION$zts.so"
48+
4649
if [ ! -f "$library" ]; then
4750
curl -fL -o "$tar" "$url"
4851
mkdir -p "$workdir"
4952
tar -xvf "$tar" -C "$workdir"
5053
fi
5154

52-
zts=$(php --version | grep -q ZTS && echo -zts || :)
5355
test -f "$library" || die "Extension not available: $library"
5456
config="/etc/php/$PHP_VERSION/cli/conf.d/10-tideways_xhprof.ini"
5557
echo "extension=$library" > "$config"
@@ -64,7 +66,7 @@ case "$(uname -s):$PHP_VERSION" in
6466
install_xhprof 0.9.4
6567
install_mongo
6668
;;
67-
Linux:7.*)
69+
Linux:7.*|Linux:8.*)
6870
install_xhprof
6971
install_mongodb
7072
install_tideways_xhprof

0 commit comments

Comments
 (0)