Skip to content

Commit aa44f33

Browse files
committed
Missed valgrind docker image versioning.
1 parent 21028ea commit aa44f33

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed

ci/test_dockerized.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
2-
if [[ $# < 1 || $# > 2 ]]; then
3-
echo "Usage: $0 PHP_VERSION [i386]" 1>&2
4-
echo "e.g. $0 8.0 php" 1>&2
2+
if [[ $# < 1 || $# > 3 ]]; then
3+
echo "Usage: $0 PHP_VERSION PHP_VERSION_FULL [i386]" 1>&2
4+
echo "e.g. $0 8.0 8.0.10 i386" 1>&2
55
echo "The PHP_VERSION is the version of the php docker image to use" 1>&2
66
exit 1
77
fi
@@ -10,21 +10,21 @@ fi
1010
# -u fail for undefined variables
1111
set -xeu
1212
PHP_VERSION=$1
13-
PHP_FULL_VERSION=${2:-$PHP_VERSION}
13+
PHP_VERSION_FULL=${2:-$PHP_VERSION}
1414
ARCHITECTURE=${3:-}
1515

1616
# Determine if we have a pre-release version, and if so, use the full version
1717
# instead of the short version. Docker hub only has short tags for stable
1818
# releases.
19-
case "$PHP_FULL_VERSION" in
19+
case "$PHP_VERSION_FULL" in
2020
*RC[0-9]*)
21-
PHP_VERSION="${PHP_FULL_VERSION}"
21+
PHP_VERSION="${PHP_VERSION_FULL}"
2222
;;
2323
*alpha[0-9]*)
24-
PHP_VERSION="${PHP_FULL_VERSION}"
24+
PHP_VERSION="${PHP_VERSION_FULL}"
2525
;;
2626
*beta[0-9]*)
27-
PHP_VERSION="${PHP_FULL_VERSION}"
27+
PHP_VERSION="${PHP_VERSION_FULL}"
2828
;;
2929
*)
3030
# Use only the major.minor version for stable releases.

ci/test_dockerized_valgrind.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,22 @@ PHP_VERSION=$1
2323
PHP_VERSION_FULL=$2
2424
ARCHITECTURE=${3:-}
2525

26+
case "$PHP_VERSION_FULL" in
27+
*RC[0-9]*)
28+
PHP_VERSION="${PHP_VERSION_FULL}"
29+
;;
30+
*alpha[0-9]*)
31+
PHP_VERSION="${PHP_VERSION_FULL}"
32+
;;
33+
*beta[0-9]*)
34+
PHP_VERSION="${PHP_VERSION_FULL}"
35+
;;
36+
*)
37+
# Use only the major.minor version for stable releases.
38+
# As provided in PHP_VERSION
39+
;;
40+
esac
41+
2642
# NOTE: php 7.3-8.0 (but not 8.1) will fail in valgrind without "--with-valgrind" because php-src uses custom assembly for its implementation of zend_string_equals
2743
# In order to fix those false positives, a different set of images would be needed where (1) valgrind was installed before compiling php, and (2) php was compiled with support for valgrind (--with-valgrind) to avoid false positives
2844
# docker run --rm $DOCKER_IMAGE ci/test_inner_valgrind.sh

0 commit comments

Comments
 (0)