Fix installing ev on PHP < 8.0 (#969)

pull/970/head 2.4.1
Michele Locati 2024-09-03 18:07:17 +02:00 committed by GitHub
parent ac4b767236
commit 561f1d3338
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -3067,6 +3067,13 @@ installRemoteModule() {
installRemoteModule_version=alpha
fi
;;
ev)
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -lt 800; then
installRemoteModule_version=1.1.5
fi
fi
;;
event)
installRemoteModule_version="$(resolvePeclStabilityVersion "$installRemoteModule_module" "$installRemoteModule_version")"
if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" 2.4.0) -ge 0; then