@@ -146,6 +146,7 @@ RECONFIGURE_PHP_DEFAULT="yes"
146
146
# If the default PHP version from the container is requested, we do not reconfigure PHP version
147
147
if [[ " ${PHP} " == " @default" ]]; then
148
148
RECONFIGURE_PHP_DEFAULT=" no"
149
+ PHP=$( php -nr " echo PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION;" )
149
150
fi
150
151
151
152
if [[ " ${COMMAND} " =~ " ^roave-backward-compatibility-check" ]] || [[ " ${COMMAND} " =~ " ^/usr/bin/env roave-backward-compatibility-check" ]] || [[ " ${COMMAND} " =~ " ^/usr/local/bin/roave-backward-compatibility-check" ]]; then
@@ -175,7 +176,7 @@ checkout
175
176
# Is there a pre-install script available?
176
177
if [ -x " .laminas-ci/pre-install.sh" ]; then
177
178
echo " Executing pre-install commands from .laminas-ci/pre-install.sh"
178
- ./.laminas-ci/pre-install.sh testuser " ${PWD} " " ${JOB} "
179
+ ./.laminas-ci/pre-install.sh testuser " ${PWD} " " ${JOB} " " ${PHP} "
179
180
fi
180
181
181
182
EXTENSIONS=$( echo " ${JOB} " | jq -r " .extensions // [] | join(\" \" )" )
@@ -237,7 +238,7 @@ chown -R testuser .
237
238
# Is there a pre-run script available?
238
239
if [ -x " .laminas-ci/pre-run.sh" ]; then
239
240
echo " Executing pre-run commands from .laminas-ci/pre-run.sh"
240
- ./.laminas-ci/pre-run.sh testuser " ${PWD} " " ${JOB} "
241
+ ./.laminas-ci/pre-run.sh testuser " ${PWD} " " ${JOB} " " ${PHP} "
241
242
fi
242
243
243
244
for BEFORE_SCRIPT_COMMAND in " ${BEFORE_SCRIPT[@]} " ; do
@@ -257,7 +258,7 @@ set -e
257
258
# Is there a post-run script available?
258
259
if [ -x " .laminas-ci/post-run.sh" ]; then
259
260
echo " Executing post-run commands from .laminas-ci/post-run.sh"
260
- ./.laminas-ci/post-run.sh " ${STATUS} " testuser " ${PWD} " " ${JOB} "
261
+ ./.laminas-ci/post-run.sh " ${STATUS} " testuser " ${PWD} " " ${JOB} " " ${PHP} "
261
262
fi
262
263
263
264
for AFTER_SCRIPT_COMMAND in " ${AFTER_SCRIPT[@]} " ; do
0 commit comments