Skip to content

Commit 0bb5ca9

Browse files
committed
Fix RedHat + PHP 8 libphp file
1 parent 6bc1072 commit 0bb5ca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/mod/php.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
$_php_version_no_dot = regsubst($php_version, '\.', '')
9494
if $apache::version::scl_httpd_version {
9595
$_lib = "librh-php${_php_version_no_dot}-php${_php_major}.so"
96-
} elsif ($facts['os']['family'] == 'RedHat') and ($_php_major == 8) {
96+
} elsif ($facts['os']['family'] == 'RedHat') and (versioncmp($php_version, '8') >= 0) {
9797
# RedHat + PHP 8 drop the major version in apache module name.
9898
$_lib = "${libphp_prefix}.so"
9999
} else {

0 commit comments

Comments
 (0)