Skip to content

Commit b3a1fbf

Browse files
committed
Switch to PHP-8.4 branch for PHP 8.4 [skip ci]
1 parent 43b3dab commit b3a1fbf

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

scripts/build_partials/version.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,13 @@ get_version() {
4848
new_version=$(get_version_from_branch master)
4949
export branch="master"
5050
else
51-
ref="$(git ls-remote --heads https://github.com/php/php-src "PHP-$PHP_VERSION".0)"
52-
if [[ -n "$ref" ]]; then
53-
export branch="PHP-$PHP_VERSION.0"
54-
else
55-
export branch="PHP-$PHP_VERSION"
56-
fi
51+
for branch_name in "PHP-$PHP_VERSION" "PHP-$PHP_VERSION.0"; do
52+
ref="$(git ls-remote --heads https://github.com/php/php-src "$branch_name")"
53+
if [[ -n "$ref" ]]; then
54+
export branch=$branch_name
55+
break;
56+
fi
57+
done
5758
fi
5859
export stable="false"
5960
else

0 commit comments

Comments
 (0)